News for hackers. Stuff that matters.
Re:Piskel – A simple web-based tool for Spriting and Pixel art by exodust on Wednesday February 01, 2017 @03:31AM (#13539284)
Impressive web app! Runs fine in my not-recently-updated browser.

Really like the Save options, there's 'save offline to file'; 'save offline in browser' (I presume HTML5 storage); and save online.

Save offline to file is really nice, and I wasn't aware could be done. It got my Googling, and I found this:

https://github.com/eligrey/FileSaver.js

Which I'm guessing is what people use these days when needing 'save as file' from the browser. I wanted this about 3 years ago and gave up, settling on saving the JSON to an Amazon bucket as the only option. I always wanted save as file though, just because I love local storage options in an age of cloud storage. I will now revist my old web app and try to implement this.

Re:Piskel – A simple web-based tool for Spriting and Pixel art by Jasper_ on Wednesday February 01, 2017 @11:22AM (#13541997)
It was definitely there three years ago. The trick is to create an <a> with the "download" attribute and set the URL to a data URI (or, if supported, use a blob and URL.createObjectURL). That will get you a download prompt.