zopflipng-bin
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/zopflipng-bin package

7.1.0 • Public • Published

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

Package Sidebar

Install

npm i zopflipng-bin

Weekly Downloads

5,596

Version

7.1.0

License

MIT

Unpacked Size

200 kB

Total Files

8

Last publish

Collaborators

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