Skip to content

This is a wrapper of images package for gulp. It support encoder(png/jpeg/gif) convert to encoder(png/jpeg).

Notifications You must be signed in to change notification settings

pasturn/gulp-images-convert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gulp-images-convert

build status

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

About

This is a wrapper of images package for gulp. It support encoder(png/jpeg/gif) convert to encoder(png/jpeg).

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published