pngcrush Node.js wrapper that optimize PNG images.
Pngcrush is an optimizer for PNG (Portable Network Graphics) files. It can be run from a commandline in an MSDOS window, or from a UNIX or LINUX commandline.
Its main purpose is to reduce the size of the PNG IDAT datastream by trying various compression levels an PNG filter methods. It also can be used to remove unwanted ancillary chunks, or to add certain chunks including gAMA, tRNS, iCCP, and textual chunks.

Install
$ npm install --save pngcrush-bin
Usage
var execFile = require('child_process').execFile;
var pngcrush = require('pngcrush-bin').path;
execFile(pngcrush, ['-reduce', '-brute', 'input.png', 'output.png'], function (err) {
if (err) {
throw err;
}
console.log('Image minified');
});
License
This is licensed under BSD.
pngcrush is licensed under OSI Approved License.