Closed rampatra closed 7 years ago
I want to resize images only if a particular image isn't converted before or is not present in the destination folder. How can I do this?
I am using gulp-image-resize which is a fork of this project and my gulpfile is like:
var gulp = require('gulp'); var imageResize = require('gulp-image-resize'); gulp.task('default', function () { gulp.src('images/fulls/*') .pipe(imageResize({ width: 1024, imageMagick: true })) .pipe(gulp.dest('images/fulls')); gulp.src('images/fulls/*') .pipe(imageResize({ width: 512, imageMagick: true })) .pipe(gulp.dest('images/thumbs')); });
Am I mistaken, or are you not using this plugin, but rather gulp-image-resize, emphasis on gulp, not grunt?
gulp-image-resize
I want to resize images only if a particular image isn't converted before or is not present in the destination folder. How can I do this?
I am using gulp-image-resize which is a fork of this project and my gulpfile is like: