optipng-bin

9.0.0 • Public • Published

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

import {execFile} from 'node:child_process';
import optipng from 'optipng-bin';

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

CLI

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

Package Sidebar

Install

npm i optipng-bin

Weekly Downloads

565,854

Version

9.0.0

License

MIT

Unpacked Size

2.33 MB

Total Files

8

Last publish

Collaborators

  • nothingismagick
  • sindresorhus
  • kevva
  • 1000ch
  • xhmikosr
  • shinnn