@mole-inc/optipng-bin

7.0.0 • Public • Published

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.

Package Sidebar

Install

npm i @mole-inc/optipng-bin

Weekly Downloads

0

Version

7.0.0

License

MIT

Unpacked Size

2.34 MB

Total Files

9

Last publish

Collaborators

  • aaharu