@cjser/optipng-bin
v9.0.0-cjser.2
Published
OptiPNG wrapper that makes it seamlessly available as a local dependency
Downloads
40
Maintainers
Readme
optipng-bin 
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-binUsage
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 --helpcjser
This package is a CommonJS-compatible build generated by cjser for projects that still need require() support. The source version matches the original npm package version, with a cjser prerelease suffix for this generated build.
Original repository: https://github.com/imagemin/optipng-bin
