Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

imagemin-gif2webp

Package Overview
Dependencies
Maintainers
7
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

imagemin-gif2webp

gif2webp imagemin plugin

  • 3.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
7
Created
Source

imagemin-gif2webp Build Status

Gif2webp imagemin plugin

Install

$ npm install --save imagemin-gif2webp

Usage

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
Default: false

Encode image using lossy compression.

mixed

Type: boolean
Default: false

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

quality

Type: number
Default: 75

Quality factor between 0 and 100.

method

Type: number
Default: 4

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

minimize

Type: boolean
Default: false

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

kmin

Type: number

Min distance between key frames.

kmax

Type: number

Max distance between key frames.

filter

Type: number

Filter strength between 0 (off) and 100.

metadata

Type: string
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
Default: false

Use multi-threading if available.

buffer

Type: buffer

Buffer to optimize.

License

MIT © imagemin

Keywords

FAQs

Package last updated on 30 May 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc