Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
pngquant bin-wrapper that makes it seamlessly available as a local dependency
JavaScript

3.0.0

latest commit 70cbe41e7e
@kevva kevva authored
Failed to load latest commit information.
lib Update source to v2.4.1
test Update source to v2.4.1
vendor Update Windows binary to v2.4.0
.editorconfig Various tweaks
.gitattributes init
.gitignore Use ava for testing
.jshintrc Various tweaks
.travis.yml Update .travis.yml
cli.js Export it directly
index.js Export it directly
license Various tweaks
package.json 3.0.0
readme.md Export it directly

readme.md

pngquant-bin Build Status

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

Usage

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

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

CLI

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

License

MIT © imagemin

Something went wrong with that request. Please try again.