Skip to content
G

gif.js

Full-featured JavaScript GIF encoder that runs in your browser

Open source

#428in Photo & Video
0In stores

Description

gif.js is an open source JavaScript library by Johan Nordberg for creating animated GIFs directly in the browser. You create a GIF object wi…

Highlights

  • Encodes animated GIFs in the browser
  • Frames from images, canvases or canvas contexts
  • Background encoding with web workers
  • Adjustable quality, delay and repeat
  • Several dithering algorithms

Ratings & Reviews

No ratings yet

Be the first to rate gif.js.

People also visit

G

gif.gg

A gif creation service

Photo & Video
Launch
G

Gifski

High-quality video-to-GIF converter preserving framerates

Photo & Video
Launch
I

image2gif

A free online tool that makes GIFs from images

Photo & Video
Launch
G

Gifu

High-performance animated GIF support for iOS in Swift

Photo & Video
Launch
M

Mothereffing animated gif

Drag and drop images from your desktop into the app

Photo & Video
Launch
F

Free GIF Tools

Free GIF tools to compress, resize, and optimize GIFs in seconds

Photo & Video
Launch

gif.js FAQ

What is gif.js?

A JavaScript library that encodes animated GIF images in the browser.

How do I add frames?

Call gif.addFrame with an image element, a canvas element, or a canvas context (with {copy: true}), optionally setting a delay per frame, then call gif.render().

Does it block the page while encoding?

No. GIFs are generated in the background using web workers, and you receive a blob when the finished event fires.

Which dithering options are available?

None, Atkinson, FalseFloydSteinberg, FloydSteinberg and Stucki, each with a serpentine variant.

Where can I download it?

From the GitHub repository jnordberg/gif.js, which also hosts the documentation.

What are the best gif.js alternatives?

Popular alternatives to gif.js include gif.gg, Gifski and image2gif. See all gif.js alternatives

Developer Stuff

Badges