Skip to content

optipng bin-wrapper that makes it seamlessly available as a local dependency

License

Notifications You must be signed in to change notification settings

fuzzmz/optipng-bin

 
 

Repository files navigation

optipng-bin Build Status

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 optipng-bin

Usage

const {promisify} = require('util');
const {execFile} = require('child_process');
const optipng = require('optipng-bin');

const execFileP = promsify(execFile);

(async () => {
	await execFile(optipng, ['-out', 'output.png', 'input.png']);
	console.log('Image minified!');
})();

CLI

$ npm install --global optipng-bin
$ optipng --help

About

optipng bin-wrapper that makes it seamlessly available as a local dependency

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%