jsgif is a pure JavaScript library for encoding still or animated GIF files from HTML5 graphics. It is a JavaScript port of the GIFEncoder portion of the earlier as3gif project. Developers can feed the encoder an HTML canvas context or raw image-data-style pixel arrays. Animated output can be configured with custom frame delays and repeat counts. Encoded data can be converted to Base64 for inline display, transferred to a server, or saved directly as a GIF file. The implementation includes GIF encoding, LZW compression, NeuQuant color quantization, and helper utilities needed to generate GIFs entirely on the client side.
Features
- Pure JavaScript GIF encoding
- HTML5 Canvas frame capture
- Raw pixel-array frame input
- Animated frame delay and repeat controls
- Base64 GIF output for inline display
- Direct GIF file generation and download
Categories
AnimationLicense
MIT LicenseFollow jsgif
Other Useful Business Software
Build Agents and Models on One Platform
Gemini Enterprise Agent Platform is Google Cloud's comprehensive platform for developers to build, scale, govern, and optimize agents and models. Choose from Google's most advanced models and third-party models like Anthropic's Claude Model Family.
Rate This Project
Login To Rate This Project
User Reviews
Be the first to post a review of jsgif!