node package manager
Loosely couple your services. Use Orgs to version and reuse your code. Create a free org »

optimage-better

node-optimage

Image optimizer, PNG, JPEG and GIF image compress on OS X, Linux, FreeBSD and Windows.

Install

Install with NPM: npm install --save optimage

Example usage

var optimage = require('optimage');
 
optimage({
    inputFile: "test.png",
    outputFile: "test.min.png"
  }, function(err, res){
    // res.inputFile 
    // res.outputFile 
    // res.saved 
});

License

MIT.