Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Kevin Mårtensson kevva
44 lines (27 sloc) 0.743 kb

optipng-bin Build Status

OptiPNG is a PNG optimizer that recompresses image files to a smaller size, without losing any information.

Install

$ npm install --save optipng-bin

Usage

var execFile = require('child_process').execFile;
var optipng = require('optipng-bin');

execFile(optipng, ['-out', 'output.png', 'input.png'], function (err) {
    if (err) {
        throw err;
    }

    console.log('Image minified!');
});

CLI

$ npm install --global optipng-bin
$ optipng --help

License

MIT © imagemin

Jump to Line
Something went wrong with that request. Please try again.