@porky-prince/pngout-bin
v5.0.0
Published
pngout wrapper that makes it seamlessly available as a local dependency
Downloads
3
Maintainers
Readme
pngout-bin
pngout optimizes the size of PNG files losslessly
You probably want imagemin-pngout
instead.
use https://npm.taobao.org/mirrors/pngquant-bin/ as downlaod source
Install
$ npm install --save pngout-bin
Usage
const {execFile} = require('child_process');
const pngout = require('pngout-bin');
execFile(pngout, ['input.png', 'output.png', '-s0', '-k0', '-f0'], err => {
console.log('Image minified!');
});
CLI
$ npm install --global pngout-bin
$ pngout --help
License
MIT © Imagemin