libgif-js
libgif-js copied to clipboard
JavaScript GIF parser and player
This change results in an approximately 10x speedup when parsing large GIFs. This is accomplished by using `Uint8Array` instead of binary strings, and using block memory allocators to increase memory...
Hello, a bit late but I added a callback which is executed on each frame step. This allows to make simple multi-step-gif-animations which can be controlled by javascript. The callback...
As with x/y offset, useful for aligning frames of 3-d wiggle gifs. Use case illustrated with this code: https://github.com/ejegg/libgif-js/blob/adjust/wiggleAdjust.js And you can play with it live here: https://ejegg.com/stereodemo
Just a quick fix
If load_url is called while the GIF is playing, the doStep() callback will attempt to read the frames[] array, which has been cleared by load_setup(). Simple workaround is to pause...
I'm using this library to parse gifs images uploaded by users. I think that making frames list public is very useful, since you can obtain single images and timings. If...
added onError function. example usage: gif.onError(function (msg, img) { console.log('error: ', msg); $(this.get_canvas()).replaceWith(img); });