This problem happened, when i try to gulp images.
I try to use imagemin to compress my images. This is my sourcecode
gulp.task('images',function(){ return gulp.src('images/**/*.{png,jpg,gif,ico}') .pipe(cache(imagemin({optimizationLevel:5,progressive:true,interlaced:true}))) .pipe(gulp.dest('dist/assets/img')) .pipe(notify({message:'Images task complete'})); });
Sorry, i solved this problem myself
Just update or reinstall the 'jpegtran-bin' plugin . Then it works
I think the version of my jpegtran-bin module is not match to the version of gulp-imagemin
This problem happened, when i try to gulp images. I try to use imagemin to compress my images. This is my sourcecode
gulp.task('images',function(){ return gulp.src('images/**/*.{png,jpg,gif,ico}') .pipe(cache(imagemin({optimizationLevel:5,progressive:true,interlaced:true}))) .pipe(gulp.dest('dist/assets/img')) .pipe(notify({message:'Images task complete'})); });