@mole-inc/optipng-bin
v7.0.0
Published
OptiPNG wrapper that makes it seamlessly
Downloads
4
Maintainers
Readme
optipng-bin
OptiPNG is a PNG optimizer that recompresses image files to a smaller size, without losing any information
You probably want imagemin-optipng
instead.
Install
$ npm install --save @mole-inc/optipng-bin
Usage
const {promisify} = require('util');
const {execFile} = require('child_process');
const optipng = require('@mole-inc/optipng-bin');
const execFileP = promsify(execFile);
(async () => {
await execFile(optipng, ['-out', 'output.png', 'input.png']);
console.log('Image minified!');
})();
CLI
$ npm install --global @mole-inc/optipng-bin
$ optipng --help
License
This is a fork of imagemin/optipng-bin licensed under the MIT License.
see license file. OptiPNG is licensed under the zlib license.