I'm using gulp-imagemin, but i want to not only minify images, but make them progressive/interlaced. What tool can be used for this task?
Asked
Active
Viewed 876 times
1 Answers
1
I typed "gulp image progressive" into Google and gulp-image-optimization was the first result. Here's a direct copy/paste of the example on that page:
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);
});

Duderino9000
- 2,535
- 4
- 31
- 37
-
This plugin is outdated: "2 years ago" – littleguga Jul 11 '16 at 02:28
-
Great. Did you try it? It's often helpful to list the things you've already tried because after reading your post I'm assuming you've tried nothing... including Google. – Duderino9000 Jul 11 '16 at 18:53
-
Sorry i forgot to said about this. It seems that there is no another plugin for this task. – littleguga Aug 15 '16 at 00:21
-
I am also searching for "progressive images with gulp" not finding anything. – William Howley Nov 22 '16 at 15:31