# imagemin-gif2webp

> gif2webp imagemin plugin

Latest version **3.0.0** (published 2020-05-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install imagemin-gif2webp
pnpm add imagemin-gif2webp
yarn add imagemin-gif2webp
bun add imagemin-gif2webp
```

## 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 | 3.0.0 |
| Published | 2020-05-30 |
| First published | 2017-05-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=10 |
| Dependencies | 3 |
| Unpacked size | 5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 6 |
| Author | Shogo Sensui |
| Maintainers | 1000ch, bradbaris, kevva, nothingismagick, shinnn, sindresorhus, xhmikosr |
| Keywords | compress, gif2webp, image, imageminplugin, img, gif, minify, optimize, webp |

## Links

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

## Dependencies (3)

- [is-gif](https://npm.io/package/is-gif.md) ^3.0.0
- [exec-buffer](https://npm.io/package/exec-buffer.md) ^3.0.0
- [gif2webp-bin](https://npm.io/package/gif2webp-bin.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

- 3.0.0 (latest) — 2020-05-30
- 2.0.0 — 2018-10-31
- 1.0.0 — 2017-05-12

## README

# imagemin-gif2webp [![Build Status](https://travis-ci.org/imagemin/imagemin-gif2webp.svg?branch=master)](https://travis-ci.org/imagemin/imagemin-gif2webp)

> Gif2webp imagemin plugin


## Install

```
$ npm install --save imagemin-gif2webp
```


## Usage

```js
const imagemin = require('imagemin');
const imageminGif2webp = require('imagemin-gif2webp');

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


## API

### imageminGif2webp([options])(buffer)

#### options

##### lossy

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

Encode image using lossy compression.

##### mixed

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

For each frame in the image, pick lossy or lossless compression heuristically.

##### quality

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

Quality factor between `0` and `100`.

##### method

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

Specify the compression method to use, between `0` (fastest) and `6` (slowest).

##### minimize

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

Minimize output size. Lossless compression by default; can be combined with `quality`, `method`, `lossy` or `mixed` options.

##### kmin

Type: `number`<br>

Min distance between key frames.

##### kmax

Type: `number`<br>

Max distance between key frames.

##### filter

Type: `number`<br>

Filter strength between `0` (off) and `100`.

##### metadata

Type: `string`<br>
Default: `xmp`

Comma separated list of metadata to copy from the input to the output if present. Valid values: `all`, `none`, `icc`, `xmp`.

##### multiThreading

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

Use multi-threading if available.

#### buffer

Type: `buffer`

Buffer to optimize.


## License

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

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