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

imagemin-gifsicle 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<Buffer> with the optimized image.

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.

Current Tags

  • 7.0.0                                ...           latest (5 years ago)

17 Versions

  • 7.0.0                                ...           5 years ago
  • 6.0.1                                ...           6 years ago
  • 6.0.0                                ...           6 years ago
  • 5.2.0                                ...           7 years ago
  • 5.1.0                                ...           9 years ago
  • 5.0.1                                ...           9 years ago
  • 5.0.0                                ...           9 years ago
  • 4.2.0                                ...           9 years ago
  • 4.1.0                                ...           10 years ago
  • 4.0.0                                ...           10 years ago
  • 3.1.0                                ...           10 years ago
  • 3.0.0                                ...           10 years ago
  • 2.0.1                                ...           10 years ago
  • 2.0.0                                ...           10 years ago
  • 1.0.0                                ...           10 years ago
  • 0.1.1                                ...           11 years ago
  • 0.1.0                                ...           11 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (3)
Dev Dependencies (3)

Copyright 2013 - present © cnpmjs.org | Home |