gulp-imagemin

Minify PNG, JPEG and GIF images

npm install gulp-imagemin
317 downloads in the last day
1 779 downloads in the last week
7 324 downloads in the last month

gulp-imagemin Build Status

Minify PNG, JPEG and GIF images with image-min

Issues with the output should be reported on the image-min issue tracker.

Install

$ npm install --save-dev gulp-imagemin

On OS X you're recommended to increase the ulimit as it's ridiculously low by default: ulimit -S -n 2048

Usage

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

gulp.task('default', function () {
    return gulp.src('src/image.png')
        .pipe(imagemin())
        .pipe(gulp.dest('dist'));
});

API

imagemin(options)

See the image-min options.

License

MIT © Sindre Sorhus

npm loves you