| layout | home |
|---|---|
| title | jsGifEncoder - Ultra-fast GIF encoder for data URL written in JavaScript |
| image | assets/favimage-472x472.jpg |
[click on the image to start the encoder]

Ultra-fast GIF encoder for data URL written in JavaScript.
Try the demonstration here: https://xyzzy.github.io/jsGifEncoder/
The code was created in May 2011 and was intended to create and load images for animations.
Output is a data URL scheme as described in rfc2397.
The encoder is used by jsFlightSim
Invocation example:
let encoder = new GifEncoder(width, height);
let data = encoder.encode(bpp, red, green, blue, pixels);Inject into HTML:
document.getElementById('img').src = data;Grab one of the tarballs at https://github.com/xyzzy/jsGifEncoder/releases or checkout the latest code:
git clone https://github.com/xyzzy/jsGifEncoder.gitThis project adheres to Semantic Versioning. For the versions available, see the tags on this repository.
This project is licensed under Affero GPLv3 - see the LICENSE.txt file for details.