pngout-bin

pngout wrapper that makes it seamlessly available as a local dependency

pngout-bin

pngout optimizes the size of PNG files losslessly

$ npm install --save pngout-bin
var execFile = require('child_process').execFile;
var pngout = require('pngout-bin').path;
 
execFile(pngout, ['input.png', 'output.png', '-s0', '-k0', '-f0'], function (err) {
    if (err) {
        throw err;
    }
 
    console.log('Image minified!');
});
$ npm install --global pngout-bin
$ pngout --help

MIT © imagemin