# pngcrush-bin

> pngcrush wrapper that makes it seamlessly available as a local dependency

Latest version **7.0.0** (published 2022-05-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install pngcrush-bin
pnpm add pngcrush-bin
yarn add pngcrush-bin
bun add pngcrush-bin
```

Provides the command `pngcrush`.

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 7.0.0 |
| Published | 2022-05-12 |
| First published | 2014-01-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM |
| Node | ^14.13.1 \|\| >=16.0.0 |
| Dependencies | 2 |
| Unpacked size | 553.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | yes |
| GitHub stars | 40 |
| Author | Shogo Sensui |
| Maintainers | nothingismagick, sindresorhus, kevva, 1000ch, xhmikosr, shinnn |
| Keywords | imagemin, bin, binary, compress, image, img, minify, optimize, png, pngcrush |

## Links

- npm: https://www.npmjs.com/package/pngcrush-bin
- Repository: https://github.com/imagemin/pngcrush-bin
- Homepage: https://github.com/imagemin/pngcrush-bin#readme
- Issues: https://github.com/imagemin/pngcrush-bin/issues
- npm.io page: https://npm.io/package/pngcrush-bin

## Dependencies (2)

- [bin-build](https://npm.io/package/bin-build.md) ^3.0.0
- [bin-wrapper](https://npm.io/package/bin-wrapper.md) ^4.0.0

## Alternatives

- [exif-parser](https://npm.io/package/exif-parser.md) — 3.8M weekly downloads
- [vite-plugin-compression](https://npm.io/package/vite-plugin-compression.md) — 569.5K weekly downloads
- [pica](https://npm.io/package/pica.md) — 442.4K weekly downloads
- [@reportportal/client-javascript](https://npm.io/package/@reportportal/client-javascript.md) — 408.8K weekly downloads
- [@tldraw/state](https://npm.io/package/@tldraw/state.md) — 316.0K weekly downloads

## Recent versions

- 7.0.0 (latest) — 2022-05-12
- 6.0.1 — 2021-11-10
- 6.0.0 — 2021-10-23
- 5.0.2 — 2021-10-22
- 5.0.1 — 2020-06-30
- 5.0.0 — 2020-05-31
- 4.0.0 — 2018-12-01
- 3.1.1 — 2017-08-30
- 3.1.0 — 2016-11-09
- 3.0.0 — 2015-04-23
- 2.2.1 — 2015-02-04
- 2.2.0 — 2014-12-30
- 2.1.1 — 2014-11-24
- 2.1.0 — 2014-11-06
- 2.0.0 — 2014-10-20
- … 23 more at https://npm.io/package/pngcrush-bin/versions

## 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)

---
_Source: https://npm.io/package/pngcrush-bin · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
