Skip to content

OptiPNG Node.js wrapper that makes it seamlessly available as a local dependency on OS X, Linux, FreeBSD and Windows.

Notifications You must be signed in to change notification settings

SachaMPS/node-optipng-bin

 
 

Repository files navigation

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, FreeBSD, Solaris and Windows.

OptiPNG is a PNG optimizer that recompresses image files to a smaller size, without losing any information.

Install

$ npm install --save optipng-bin

Usage

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

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

CLI

$ npm install --global optipng
$ optipng --help

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.

About

OptiPNG Node.js wrapper that makes it seamlessly available as a local dependency on OS X, Linux, FreeBSD and Windows.

Resources

Contributing

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%