|
|
||
|---|---|---|
| .. | ||
| lib | ||
| vendor | ||
| cli.js | ||
| index.js | ||
| license | ||
| package.json | ||
| readme.md | ||
readme.md
optipng-bin 
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