Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including gifsicle with all npm packages installed. Try it out:

var gifsicle = require("gifsicle")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

gifsicle v3.0.4

gifsicle wrapper that makes it seamlessly available as a local dependency

gifsicle-bin Build Status

gifsicle manipulates GIF image files in many different ways. Depending on command line options, it can merge several GIFs into a GIF animation; explode an animation into its component frames; change individual frames in an animation; turn interlacing on and off; add transparency and much more.


$ npm install --save gifsicle


const {execFile} = require('child_process');
const gifsicle = require('gifsicle');

execFile(gifsicle, ['-o', 'output.gif', 'input.gif'], err => {
    console.log('Image minified!');


$ npm install --global gifsicle
$ gifsicle --help


MIT © imagemin


RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free