pngquant bin-wrapper that makes it seamlessly available as a local dependency
JavaScript
Latest commit 6ef1b8b Mar 29, 2017 @sindresorhus sindresorhus Meta tweaks
Permalink
Failed to load latest commit information.
lib Meta tweaks Mar 29, 2017
test Meta tweaks Mar 29, 2017
vendor Update macOS binary to v2.7.1 Jun 17, 2016
.editorconfig meta tweaks Apr 8, 2016
.gitattributes Meta tweaks Mar 29, 2017
.gitignore Use ava for testing Aug 22, 2014
.travis.yml ES2015ify and require Node.js 4 (#61) Mar 29, 2017
cli.js Meta tweaks Mar 29, 2017
index.js Meta tweaks Mar 29, 2017
license Meta tweaks Mar 29, 2017
package.json Meta tweaks Mar 29, 2017
readme.md Meta tweaks Mar 29, 2017

readme.md

pngquant-bin Build Status

pngquant is a PNG compressor that significantly reduces file sizes by converting images to a more efficient 8-bit PNG format

You probably want imagemin-pngquant instead.

Install

$ npm install --save pngquant-bin

Usage

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

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

CLI

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

License

MIT © Imagemin