jnordberg / gif.js

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

Synchronous usage #57

Closed photopea closed 8 years ago

photopea commented 8 years ago

Hi,

Is it possible to use gif.js synchronously, without "finished" event?

I wonder why do you create bindings with DOM etc. GIF encoder should be a tool, which receives ArrayBuffer (uncompressed image) and returns another ArrayBuffer (compressed image). If you want to make Canvas or an Image as an input, it should be built on top of GIF.js, not as the only input method.

jnordberg commented 8 years ago

Use the source luke

photopea commented 8 years ago

Hi, what source do you mean? Can you add an example of synchronous usage into the .md description?

Who is Luke?