optipng bin-wrapper that makes it seamlessly available as a local dependency
JavaScript
Latest commit e8a77a7 Jun 14, 2016 @sindresorhus sindresorhus meta tweaks
Permalink
Failed to load latest commit information.
lib meta tweaks Jun 14, 2016
test Update optipng source to v0.7.6 Apr 12, 2016
vendor Update win32 binary to v0.7.6 Apr 12, 2016
.editorconfig meta tweaks Jun 14, 2016
.gitattributes init Nov 21, 2012
.gitignore Tweaks Apr 20, 2015
.travis.yml meta tweaks Jun 14, 2016
cli.js meta tweaks Jun 14, 2016
index.js Export it directly Apr 20, 2015
license Tweaks Apr 20, 2015
package.json 3.1.2 May 12, 2016
readme.md meta tweaks Jun 14, 2016

readme.md

optipng-bin Build Status

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

Install

$ npm install --save optipng-bin

Usage

const {execFile} = require('child_process');
const optipng = require('optipng-bin');

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

CLI

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

License

MIT © imagemin