Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

optipng-bin

7.0.0 • Public • Published

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

Install

npm i optipng-bin

DownloadsWeekly Downloads

593,820

Version

7.0.0

License

MIT

Unpacked Size

2.33 MB

Total Files

8

Last publish

Collaborators

  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar