JSPM

  • Created
  • Published
  • Downloads 559259
  • Score
    100M100P100Q206866F
  • License MIT

gifsicle wrapper that makes it seamlessly available as a local dependency

Package Exports

  • gifsicle

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (gifsicle) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

gifsicle-bin GitHub Actions 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.

You probably want imagemin-gifsicle instead.

Install

$ npm install gifsicle

Usage

import {execFile} from 'node:child_process';
import gifsicle from 'gifsicle';

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

CLI

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