gulp-image-optimization
Minify PNG, JPEG and GIF images. this is based on https://github.com/sindresorhus/gulp-imagemin with stream-limit implementation
Last updated 6 years ago by firetix .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install gulp-image-optimization 
SYNC missed versions from official npm registry.

gulp-image-optimization

Minify PNG, JPEG and GIF images with image-min

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

Install

Install with npm

npm install --save-dev gulp-image-optimization

Example

var gulp = require('gulp');
var imageop = require('gulp-image-optimization');

gulp.task('images', function(cb) {
    gulp.src(['src/**/*.png','src/**/*.jpg','src/**/*.gif','src/**/*.jpeg']).pipe(imageop({
        optimizationLevel: 5,
        progressive: true,
        interlaced: true
    })).pipe(gulp.dest('public/images')).on('end', cb).on('error', cb);
});

API

imageop(options)

See the image-min options.

License

MIT © [Mohamed Rachidi]

Current Tags

  • 0.1.3                                ...           latest (6 years ago)

4 Versions

  • 0.1.3                                ...           6 years ago
  • 0.1.2                                ...           6 years ago
  • 0.1.1                                ...           6 years ago
  • 0.1.0                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 9
Last Day 0
Last Week 12
Last Month 8
Dependencies (6)
Dev Dependencies (1)

Copyright 2014 - 2016 © taobao.org |