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
$300 Free Credits to Build on Google Cloud
Put your $300 in credit toward real workloads, then keep building with free monthly usage for 20+ products. No commitment and no charge until you upgrade.
Rate This Project
Login To Rate This Project
User Reviews
Be the first to post a review of jsgif!