@dinamomx/optipng-bin

OptiPNG wrapper that makes it seamlessly available as a local dependency

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
8818May 29, 2021Nov 21, 2012Minified + gzip package size for @dinamomx/optipng-bin in KB

Readme

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 {execFile} = require('child_process');
const optipng = require('optipng-bin');

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

CLI

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

License

MIT © Imagemin

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.