gulp-tinify
v1.0.2
Published
Minify PNG, JPEG, and GIF images via TinyPNG's API
Downloads
144
Maintainers
Readme
gulp-tinify
Minify compatible files using TinyPNG's API
Installation
npm install --save-dev gulp-tinify
Usage
var gulp = require('gulp');
var tinify = require('gulp-tinify');
gulp.task('tinify', function() {
gulp.src('/img/**/*')
.pipe(tinify('TinyPNGAPIKey'))
.pipe(gulp.dest('/dest/img'));
});
You must have a TinyPNG Developer API Key for this to work.
License
MIT © Josh Broton