7.0.0 • Published 4 years ago

optipng-changba v7.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

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

Usage

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

const execFileP = promsify(execFile);

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

CLI

$ npm install --global optipng-changba
$ optipng --help