# @dinamomx/imagemin-gifsicle

> gifsicle imagemin plugin

Latest version **5.2.2** (published 2018-08-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install @dinamomx/imagemin-gifsicle
pnpm add @dinamomx/imagemin-gifsicle
yarn add @dinamomx/imagemin-gifsicle
bun add @dinamomx/imagemin-gifsicle
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 5.2.2 |
| Published | 2018-08-24 |
| First published | 2018-08-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=4 |
| Dependencies | 3 |
| Unpacked size | 4.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 117 |
| Author | Kevin Mårtensson |
| Maintainers | cesasol |
| Keywords | compress, gif, gifsicle, gulpplugin, image, imageminplugin, img, minify, optimize |

## Links

- npm: https://www.npmjs.com/package/@dinamomx/imagemin-gifsicle
- Repository: https://github.com/imagemin/imagemin-gifsicle
- Homepage: https://github.com/imagemin/imagemin-gifsicle#readme
- Issues: https://github.com/imagemin/imagemin-gifsicle/issues
- npm.io page: https://npm.io/package/@dinamomx/imagemin-gifsicle

## Dependencies (3)

- [is-gif](https://npm.io/package/is-gif.md) ^1.0.0
- [exec-buffer](https://npm.io/package/exec-buffer.md) ^3.0.0
- [@dinamomx/gifsicle](https://npm.io/package/@dinamomx/gifsicle.md) ^3.0.0

## Alternatives

- [exif-parser](https://npm.io/package/exif-parser.md) — 3.8M weekly downloads
- [vite-plugin-compression](https://npm.io/package/vite-plugin-compression.md) — 569.5K weekly downloads
- [pica](https://npm.io/package/pica.md) — 442.4K weekly downloads
- [@reportportal/client-javascript](https://npm.io/package/@reportportal/client-javascript.md) — 408.8K weekly downloads
- [@tldraw/state](https://npm.io/package/@tldraw/state.md) — 316.0K weekly downloads

## Recent versions

- 5.2.2 (latest) — 2018-08-24
- 5.2.1 — 2018-08-24

## README

# imagemin-gifsicle [![Build Status](http://img.shields.io/travis/imagemin/imagemin-gifsicle.svg?style=flat)](https://travis-ci.org/imagemin/imagemin-gifsicle) [![Build status](https://ci.appveyor.com/api/projects/status/51vfu1ntxwx7t949?svg=true)](https://ci.appveyor.com/project/ShinnosukeWatanabe/imagemin-gifsicle)

> gifsicle imagemin plugin


## Install

```
$ npm install imagemin-gifsicle
```


## Usage

```js
const imagemin = require('imagemin');
const imageminGifsicle = require('imagemin-gifsicle');

imagemin(['images/*.gif'], 'build/images', {use: [imageminGifsicle()]}).then(() => {
	console.log('Images optimized');
});
```


## API

### imageminGifsicle([options])(buffer)

Returns a promise for a buffer.

#### options

Type: `Object`

##### interlaced

Type: `boolean`<br>
Default: `false`

Interlace gif for progressive rendering.

##### optimizationLevel

Type: `number`<br>
Default: `1`

Select an optimization level between `1` and `3`.

> The optimization level determines how much optimization is done; higher levels take longer, but may have better results.

1. Stores only the changed portion of each image.
2. Also uses transparency to shrink the file further.
3. Try several optimization methods (usually slower, sometimes better results)

##### colors

Type: `number`

Reduce the number of distinct colors in each output GIF to num or less. Num must be between 2 and 256.

#### buffer

Type: `Buffer`

Buffer to optimize.


## License

MIT © [imagemin](https://github.com/imagemin)

---
_Source: https://npm.io/package/@dinamomx/imagemin-gifsicle · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
