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
Build Agents and Models on One Platform Icon
Build Agents and Models on One Platform

Everything you need to build production-ready agents and models. Access 200+ Google and third-party AI models and tools.

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

4 days ago