Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

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

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bin
lib
optipng
test
vendor
.editorconfig
.gitattributes
.gitignore
.jshintrc
.npmignore
.travis.yml
build.js
contributing.md
package.json
readme.md

readme.md

node-optipng-bin Build Status

OptiPNG 0.7.4 Node.js wrapper that makes it seamlessly available as a local dependency on OS X, Linux and Windows. Used to losslessly minify PNG images.

Example usage

var execFile = require('child_process').execFile;
var optipngPath = require('optipng-bin').path;

execFile(optipngPath, ['-v'], function(err, stdout, stderr) {
    console.log('OptiPNG version:', stdout.match(/\d\.\d.\d/)[0]);
});

You can also run it directly from ./node_modules/.bin/optipng-bin

License

Everything excluding the binaries licensed under the BSD license and copyright Google.

OptiPNG licensed under the zlib license and copyright Cosmin Truta and the Contributing Authors.

Something went wrong with that request. Please try again.