gifsicle
Version:
gifsicle wrapper that makes it seamlessly available as a local dependency
33 lines (22 loc) • 836 B
Markdown
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`](https://github.com/imagemin/imagemin-gifsicle) instead.
```
$ npm install gifsicle
```
```js
import {execFile} from 'node:child_process';
import gifsicle from 'gifsicle';
execFile(gifsicle, ['-o', 'output.gif', 'input.gif'], error => {
console.log('Image minified!');
});
```
```
$ npm install --global gifsicle
```
```
$ gifsicle --help
```
> gifsicle manipulates GIF image files