gulp-image

Optimize PNG, JPG, GIF, SVG images with gulp task.

gulp-image

Optimize PNG, JPEG, GIF, SVG images with gulp task.

$ npm install --save-dev gulp-image

This is an example of gulpfile.js.

var gulp = require('gulp');
var image = require('gulp-image');
 
gulp.task('image', function () {
  gulp.src('./fixtures/*')
    .pipe(image())
    .pipe(gulp.dest('./dest'));
});
 
gulp.task('default', ['image']);

MIT: http://1000ch.mit-license.org/