Skip to content
This repository has been archived by the owner on May 8, 2024. It is now read-only.

mole-inc/optipng-bin

 
 

Repository files navigation

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.

About

optipng bin-wrapper that makes it seamlessly

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%