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

Project Samples

Project Activity

See All Activity >

Categories

Animation

License

MIT License

Follow jsgif

jsgif Web Site

Other Useful Business Software
Veeam Data Platform v13.1 Icon
Veeam Data Platform v13.1

Move workloads across hypervisors and clouds with no vendor lock-in. Try VDP free today.

Try Veeam Data Platform today. Experience the unified platform that's secure by design, portable by default, and proven to recover clean, fast, and anywhere.
Try Now
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of jsgif!

Additional Project Details

Programming Language

JavaScript

Related Categories

JavaScript Animation Software

Registered

2026-09-03