gulp-tinypng

gulp plugin to compress png images using tinypng api

gulp-tinypng

Minify PNG using tinypng

Install with npm

npm install --save-dev gulp-tinypng
var gulp = require('gulp');
var imagemin = require('gulp-tinypng');
 
gulp.task('tinypng', function () {
    gulp.src('src/image.png')
        .pipe(tingpng('API_KEY'))
        .pipe(gulp.dest('dist'));
});

MIT © Gaurav Jassal