gulp-image-jpegoptim-bind-fix

1.2.0 • Public • Published

gulp-image

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

Build Status NPM version Dependency Status devDependency Status Analytics

Install

$ npm install --save-dev gulp-image

Usage

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

You can pass an object to image() as argument such as following:

gulp.task('image', function () {
  gulp.src('./fixtures/*')
    .pipe(image({
      pngquant: true,
      optipng: false,
      zopflipng: true,
      advpng: true,
      jpegRecompress: false,
      jpegoptim: true,
      mozjpeg: true,
      gifsicle: true,
      svgo: true
    }))
    .pipe(gulp.dest('./dest'));
});

Set false if you don't want to apply.

License

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

/gulp-image-jpegoptim-bind-fix/

    Package Sidebar

    Install

    npm i gulp-image-jpegoptim-bind-fix

    Weekly Downloads

    1

    Version

    1.2.0

    License

    MIT

    Last publish

    Collaborators

    • merobertsjr