gulp-images-convert
v1.1.1
Published
a image convert plugin for gulp
Downloads
32
Readme
gulp-images-convert
This is a wrapper of images package for gulp. It support encoder(png/jpeg/gif) convert to encoder(png/jpeg).
Installation
Install package with NPM and add it to your development dependencies:
npm install --save-dev gulp-images-convert
Usage
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'));
})
License
MIT