JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 516633
  • Score
    100M100P100Q186411F
  • License MIT

gifsicle imagemin plugin

Package Exports

  • imagemin-gifsicle

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (imagemin-gifsicle) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

imagemin-gifsicle Build Status Build status

gifsicle imagemin plugin

Install

$ npm install --save imagemin-gifsicle

Usage

var Imagemin = require('imagemin');
var gifsicle = require('imagemin-gifsicle');

var imagemin = new Imagemin()
    .src('images/*.gif')
    .dest('build/images')
    .use(gifsicle({ interlaced: true }));

imagemin.run(function (err, files) {
    if (err) {
        throw err;
    }

    console.log('Files optimized successfully!'); 
});

You can also use this plugin with gulp:

var gulp = require('gulp');
var gifsicle = require('imagemin-gifsicle');

gulp.task('default', function () {
    return gulp.src('images/*.gif')
        .pipe(gifsicle({ interlaced: true })())
        .pipe(gulp.dest('build/images'));
});

Options

interlaced

Type: Boolean
Default: false

Interlace gif for progressive rendering.

License

MIT © imagemin