Nighttime Peanut Migrations
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    gulp-image-optimizationpublic

    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]

    Keywords

    none

    install

    npm i gulp-image-optimization

    Downloadsweekly downloads

    678

    version

    0.1.3

    license

    none

    last publish

    collaborators

    • avatar