gulp-image

Optimize PNG, JPG, GIF images with gulp task.

npm install gulp-image
4 downloads in the last day
44 downloads in the last week
117 downloads in the last month

gulp-image

About

Optimize PNG, JPEG, GIF images with gulp task.

Build Status NPM version Dependency Status devDependency Status

NPM

Dependency

jpeg-recompress requires libjpeg-turbo, so you have to install some libraries before getting gulp-image.

Ubuntu

$ sudo apt-get install build-essential libjpeg-turbo8 libjpeg-turbo8-dev

Mac OS X

$ brew install libjpeg libjpeg-turbo

Install

$ npm install --save-dev gulp-image

Usage

This is gulpfile.js sample.

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']);

License

MIT

npm loves you