Lossy compression of PNG images for Meteor using PNGQuant
Meteor PNGQuant package can be installed using Meteor package system. Just type in the command line:
$ meteor add jagi:pngquant
The last argument (optional) of the PNGQuant
function is array of arguments that will be passed to pngquant
command.
PNGQuant('/src/path/to/file.png', '/dest/path/to/file.png', [256, '--speed=1']);
The PNGQuant
function uses Fibers and is synchronous.
MIT