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
$300 Free Credits to Build on Google Cloud Icon
$300 Free Credits to Build on Google Cloud

New customers can spin up VMs, build with AI, and query data at no cost.

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.
Start Free
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