0.0.2 • Published 9 years ago

pngquant-bin-gfw v0.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

pngquant-bin-gfw

pngquant is a command-line utility for converting 24/32-bit PNG images to paletted (8-bit) PNGs. The conversion reduces file sizes significantly (often as much as 70%) and preserves full alpha transparency.

Install

$ npm install --save pngquant-bin-gfw

Usage

var execFile = require('child_process').execFile;
var pngquant = require('pngquant-bin-gfw');

execFile(pngquant, ['-o', 'output.png', 'input.png'], function (err) {
	console.log('Image minified!');
});

CLI

$ npm install --global pngquant-bin-gfw
$ pngquant --help