Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/imagemin/zopflipng-bin
zopflipng bin-wrapper that makes it seamlessly available as a local dependency
https://github.com/imagemin/zopflipng-bin
Last synced: 3 days ago
JSON representation
zopflipng bin-wrapper that makes it seamlessly available as a local dependency
- Host: GitHub
- URL: https://github.com/imagemin/zopflipng-bin
- Owner: imagemin
- License: mit
- Created: 2014-01-31T02:51:02.000Z (almost 11 years ago)
- Default Branch: main
- Last Pushed: 2022-05-07T14:33:16.000Z (over 2 years ago)
- Last Synced: 2024-04-23T22:09:15.802Z (7 months ago)
- Language: JavaScript
- Homepage: https://github.com/google/zopfli
- Size: 1.56 MB
- Stars: 51
- Watchers: 10
- Forks: 10
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# zopflipng-bin ![GitHub Actions Status](https://github.com/imagemin/zopflipng-bin/workflows/test/badge.svg?branch=main)
> [zopfli](https://github.com/google/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`](https://github.com/imagemin/imagemin-zopfli) instead.
## Install
```
$ npm install zopflipng-bin
```## Usage
```js
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](https://github.com/imagemin)