Skip to content
Gulp plugin for optimizing PNG images with optipng
JavaScript
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
.gitignore
.jshintrc
.travis.yml
README.md
fixture.bmp
fixture.png
index.js
package.json
test.js

README.md

gulp-optipng Build Status

Lossless minification of PNG with optipng

*Issues with the output should be reported on the optipng issue tracker

Install

Install with npm

npm install --save-dev gulp-optipng

Example

var gulp = require('gulp');
var optipng = require('gulp-optipng');

var options = ['-o2'];

gulp.task('default', function () {
    gulp.src('src/*.png')
        .pipe(optipng(options))
        .pipe(gulp.dest('dist'));
});

API

optipng(options)

See the optipng options.

License

MIT © Amey Parulekar

Something went wrong with that request. Please try again.