JSPM

gulp-image-optimization

0.1.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 11
  • Score
    100M100P100Q58713F
  • License MIT

Minify PNG, JPEG and GIF images. this is based on https://github.com/sindresorhus/gulp-imagemin with stream-limit implementation

Package Exports

  • gulp-image-optimization

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (gulp-image-optimization) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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]