zopflipng-bin

v7.0.0
`zopflipng` wrapper that makes it seamlessly available as a local dependency
imagemin compress image img minify optimize png zopfli zopflipng and 1 more...

zopflipng-bin GitHub Actions Status

zopfli Compression Algorithm is a new zlib (gzip, deflate) compatible compressor that takes more time (~100x slower), but compresses around 5% better than zlib and better than any other zlib-compatible compressor

You probably want imagemin-zopfli instead.

Install

$ npm install zopflipng-bin

Usage

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

execFile(zopflipng, ['-m', '--lossy_8bit', 'input.png', 'outout.png'], () => {
    console.log('Image minified!');
});

CLI

$ npm install --global zopflipng-bin
$ zopflipng --help

License

MIT © Imagemin

Metadata

  • MIT
  • ^12.20.0 || ^14.13.1 || >=16.0.0
  • Shogo Sensui
  • released 10/23/2021

Downloads