/optipng-bin

optipng bin-wrapper that makes it seamlessly

Primary LanguageJavaScriptMIT LicenseMIT

optipng-bin Node CI

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

You probably want imagemin-optipng instead.

Downloads Version

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.