Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- gulp.task('previews', function () {
- return gulp.src('src/img/works/*.{png,jpg}')
- .pipe(responsive({
- '*': [
- {
- width: 375,
- height: 400,
- rename: {
- suffix: '_preview',
- extname: '.jpg',
- },
- crop:{
- gravity: "north"
- }
- },
- {
- rename: {
- suffix: '_full',
- extname: '.jpg',
- }
- }
- ]
- }))
- .pipe(imagemin({progressive: true}))
- .pipe(gulp.dest('public/img/works'));
- });
Add Comment
Please, Sign In to add comment