Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/imagemin/pngcrush-bin
pngcrush bin-wrapper that makes it seamlessly available as a local dependency
https://github.com/imagemin/pngcrush-bin
Last synced: 3 days ago
JSON representation
pngcrush bin-wrapper that makes it seamlessly available as a local dependency
- Host: GitHub
- URL: https://github.com/imagemin/pngcrush-bin
- Owner: imagemin
- License: mit
- Created: 2014-01-30T08:04:41.000Z (almost 11 years ago)
- Default Branch: main
- Last Pushed: 2023-12-15T18:49:07.000Z (11 months ago)
- Last Synced: 2024-08-19T04:41:45.485Z (3 months ago)
- Language: JavaScript
- Homepage: http://pmt.sourceforge.net/pngcrush/
- Size: 3.4 MB
- Stars: 39
- Watchers: 9
- Forks: 14
- Open Issues: 3
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# pngcrush-bin ![GitHub Actions Status](https://github.com/imagemin/pngcrush-bin/workflows/test/badge.svg?branch=main)
> [pngcrush](https://pmt.sourceforge.io/pngcrush/) is an optimizer which main purpose is to reduce the size of the PNG IDAT datastream by trying various compression levels an PNG filter methods
You probably want [`imagemin-pngcrush`](https://github.com/imagemin/imagemin-pngcrush) instead.
## Install
```
$ npm install --save pngcrush-bin
```## Usage
```js
import {execFile} from 'node:child_process';
import pngcrush from 'pngcrush-bin';execFile(pngcrush, ['-reduce', '-brute', 'input.png', 'output.png'], error => {
console.log('Image minified');
});
```## CLI
```
$ npm install --global pngcrush-bin
``````
$ pngcrush --help
```## License
MIT © [Imagemin](https://github.com/imagemin)