optipng2.1.0 • Public • Published
The optipng command line utility as a readable/writable stream. This is handy for situations where you don't want to worry about writing the input to disc and reading the output afterwards.
If you don't have an
optipng binary in your PATH,
will try to use one of the binaries provided by the node-optipng-bin
The constructor optionally takes an array of command line options for
var OptiPng =myOptimizer = '-o7';sourceStream;
OptiPng as a web service:
var OptiPng =http = ;http;
Make sure you have node.js and npm installed, then run:
npm install optipng
3-clause BSD license -- see the
LICENSE file for details.