imagemin-gifsicle
Imagemin plugin for Gifsicle
Last updated a year ago by sindresorhus .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install imagemin-gifsicle 
SYNC missed versions from official npm registry.

imagemin-gifsicle Build Status Build status

Imagemin plugin for Gifsicle

Install

$ npm install imagemin-gifsicle

Usage

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

(async () => {
	await imagemin(['images/*.gif'], 'build/images', {
		use: [
			imageminGifsicle()
		]
	});

	console.log('Images optimized');
})();

API

imageminGifsicle([options])(buffer)

Returns a promise for a buffer.

options

Type: Object

interlaced

Type: boolean
Default: false

Interlace gif for progressive rendering.

optimizationLevel

Type: number
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

Current Tags

  • 6.0.1                                ...           latest (a year ago)

16 Versions

  • 6.0.1                                ...           a year ago
  • 6.0.0                                ...           a year ago
  • 5.2.0                                ...           2 years ago
  • 5.1.0                                ...           3 years ago
  • 5.0.1                                ...           3 years ago
  • 5.0.0                                ...           4 years ago
  • 4.2.0                                ...           4 years ago
  • 4.1.0                                ...           5 years ago
  • 4.0.0                                ...           5 years ago
  • 3.1.0                                ...           5 years ago
  • 3.0.0                                ...           5 years ago
  • 2.0.1                                ...           5 years ago
  • 2.0.0                                ...           5 years ago
  • 1.0.0                                ...           5 years ago
  • 0.1.1                                ...           6 years ago
  • 0.1.0                                ...           6 years ago
Downloads
Today 12
This Week 3,802
This Month 10,014
Last Day 175
Last Week 4,897
Last Month 15,922
Dependencies (3)
Dev Dependencies (3)
Dependents (237)

Copyright 2014 - 2016 © taobao.org |