The pngquant utility as a readable/writable stream
The pngquant command line utility as a readable/writable stream.
The constructor optionally takes an array of command line options for
pngquant binary (defaults to
var PngQuant =myPngQuanter = 192 '--quality' '60-80' '--nofs' '-';sourceStream;
PngQuant as a web service (sends back a png with the number of colors quantized to 128):
var PngQuant =http = ;http;
Make sure you have node.js and npm installed, and that the
pngquant binary is in your PATH, then run:
npm install pngquant
3-clause BSD license -- see the
LICENSE file for details.