PLEASE USE https://github.com/imagemin/pngquant-bin - this is an OLD pngquant Node.js wrapper that makes it seamlessly available on Windows and Mac OSX.
JavaScript
Switch branches/tags
Nothing to show
Latest commit 9e4d3cb Jul 16, 2016 @zauni zauni Merge pull request #4 from dancon/master
Update binaries to 2.7.2
Permalink
Failed to load latest commit information.
lib First version without linux support May 14, 2013
test
vendor Update binaries to 2.7.2 Jul 16, 2016
.gitignore
.jshintrc
Gruntfile.js
LICENSE-MIT Initial Commit after using grunt-init May 9, 2013
README.md
package.json

README.md

node-pngquant-bin

pngquant Node.js wrapper that makes it seamlessly available on Windows and Mac OS X. Most of the ideas are taken from node-optipng-bin module.

Getting Started

Install the module with: npm install node-pngquant-bin

var pngquantPath = require('node-pngquant-bin').path;

Documentation

(Coming soon)

Examples

var pngquantPath = require('node-pngquant-bin').path,
	execFile = require('child_process').execFile;

execFile(pngquantPath, ['256', '--', 'imagefile.png'], function() {
	// image is optimized and renamed to imagefile-fs8.png
});

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.

Release History

  • 0.1.0: Initial release without Linux support

License

Copyright (c) 2013 Matthias Zaunseder Licensed under the MIT license.