# optipng-bin

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

Latest version **9.0.0** (published 2022-05-04) · MIT license · 0 weekly downloads

## Install

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

Provides the command `optipng`.

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 9.0.0 |
| Published | 2022-05-04 |
| First published | 2012-12-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM |
| Node | ^14.13.1 \|\| >=16.0.0 |
| Dependencies | 2 |
| Unpacked size | 2.2 MB |
| Known vulnerabilities | 0 |
| Install scripts | yes |
| GitHub stars | 100 |
| Maintainers | nothingismagick, sindresorhus, kevva, 1000ch, xhmikosr, shinnn |
| Keywords | imagemin, compress, image, minify, optimize, png, optipng |

## Links

- npm: https://www.npmjs.com/package/optipng-bin
- Repository: https://github.com/imagemin/optipng-bin
- Homepage: https://github.com/imagemin/optipng-bin#readme
- Issues: https://github.com/imagemin/optipng-bin/issues
- npm.io page: https://npm.io/package/optipng-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

- 9.0.0 (latest) — 2022-05-04
- 8.1.0 — 2021-11-12
- 8.0.1 — 2021-11-10
- 8.0.0 — 2021-10-23
- 7.0.1 — 2021-10-20
- 7.0.0 — 2020-05-24
- 6.0.0 — 2019-05-25
- 5.1.0 — 2018-12-09
- 5.0.0 — 2018-10-31
- 4.0.0 — 2017-05-01
- 3.1.4 — 2017-04-06
- 3.1.3 — 2017-04-06
- 3.1.2 — 2016-05-12
- 3.1.1-rc.3 — 2016-05-12
- 3.1.1-rc.2 — 2016-05-12
- … 35 more at https://npm.io/package/optipng-bin/versions

## README

# optipng-bin ![GitHub Actions Status](https://github.com/imagemin/optipng-bin/workflows/test/badge.svg?branch=main)

> [OptiPNG](http://optipng.sourceforge.net) is a PNG optimizer that recompresses image files to a smaller size, without losing any information

You probably want [`imagemin-optipng`](https://github.com/imagemin/imagemin-optipng) instead.


## Install

```
$ npm install --save optipng-bin
```


## Usage

```js
import {execFile} from 'node:child_process';
import optipng from 'optipng-bin';

execFile(optipng, ['-out', 'output.png', 'input.png'], error => {
	console.log('Image minified!');
});
```


## CLI

```
$ npm install --global optipng-bin
```

```
$ optipng --help
```

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