This is a wrapper of images package for gulp. It support encoder(png/jpeg/gif) convert to encoder(png/jpeg).
Install package with NPM and add it to your development dependencies:
npm install --save-dev gulp-images-convert
var gulp = require('gulp');
var rename = require('gulp-rename');
var imagesConvert = require('gulp-images-convert');
gulp.task('convert', function () {
return gulp.src('assets/*.jpg')
.pipe(imagesConvert({targetType: 'png'}))
.pipe(rename({extname: ".png"}))
.pipe(gulp.dest('dist/assets'));
})
MIT