jnordberg / gif.js

JavaScript GIF encoding library
http://jnordberg.github.io/gif.js/
MIT License
4.74k stars 668 forks source link

How to save the resulting GIF element to a file? #85

Closed Zvika88 closed 6 years ago

Zvika88 commented 6 years ago

Cool package, seems to work smoothly and generate a GIF element on the browser, kudos! I'd like to save a local copy and to upload it to a server. How can the GIF be saved and/or uploaded? Thanks! Z.

1j01 commented 6 years ago

For saving to the user's computer, check out FileSaver.js, and for uploading to a server, well, it depends on the server! Just google e.g. "upload file php" or "upload file node.js" (or "upload blob") - and you might want to look into resumable upload solutions for robustness.

(In the future there may be a standard streaming API, which might affect both recommendations.)

Zvika88 commented 6 years ago

Great, thank you!