nowfound

Life & fun · May 20, 2013

GJ

gif.js - Fast GIF encoder using web workers

Full-featured JavaScript GIF encoder that runs in your browser.

gif.js - Fast GIF encoder using web workers launched on May 20, 2013 with 63 votes, #42 of 587 launches that month and more than 90% of that year's launches. The site was still online in September 2026, 13 years on.

In plain words

gif.js is a JavaScript GIF encoder that runs in web browsers. It allows developers to create animated GIFs from image and canvas elements by adding frames with customizable delays and quality settings. The encoder uses web workers to process GIF generation in the background without blocking the main thread. Once rendering is complete, the resulting GIF blob can be downloaded or displayed. This tool is designed for web developers who need to programmatically generate GIF animations directly in the browser.

written from the facts on this page · September 2026

From the sources

Full-featured JavaScript GIF encoder that runs in your browser. var gif = new GIF({ workers: 2 , quality: 10 }); // add a image element gif.addFrame(imageElement); // or a canvas element gif.addFrame(canvasElement, {delay: 200 }); // or copy the pixels from a canvas context gif.addFrame(ctx, {copy: true }); gif.on( 'finished' , function ( blob ) { window .open(URL.createObjectURL(blob)); }); gif.render(); Demo GIF images are generated in the background using web workers. Hover the original and reference tabs to see respective image. Reference images are rendered with photoshop cs6 using the perceptual setting with nofrom jnordberg.github.io

Does a similar job

all alternatives →

More life & fun this month

the category →

Source: Show HN post ↗

Launched alongside, May 2013

the whole month →