# jpeg-recompress-bin

> jpeg-recompress wrapper that makes it seamlessly available as a local dependency

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

## Install

```sh
npm install jpeg-recompress-bin
pnpm add jpeg-recompress-bin
yarn add jpeg-recompress-bin
bun add jpeg-recompress-bin
```

Provides the command `jpeg-recompress`.

## 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-06 |
| First published | 2014-02-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM |
| Node | ^14.13.1 \|\| >=16.0.0 |
| Dependencies | 2 |
| Unpacked size | 2 MB |
| Known vulnerabilities | 0 |
| Install scripts | yes |
| GitHub stars | 25 |
| Author | Shogo Sensui |
| Maintainers | nothingismagick, sindresorhus, kevva, 1000ch, xhmikosr, shinnn |
| Keywords | imagemin, compress, image, img, jpeg, jpg, minify, optimize, jpeg-recompress |

## Links

- npm: https://www.npmjs.com/package/jpeg-recompress-bin
- Repository: https://github.com/imagemin/jpeg-recompress-bin
- Homepage: https://github.com/imagemin/jpeg-recompress-bin#readme
- Issues: https://github.com/imagemin/jpeg-recompress-bin/issues
- npm.io page: https://npm.io/package/jpeg-recompress-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.1.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-06
- 6.0.1 — 2021-11-10
- 6.0.0 — 2021-10-23
- 5.1.2 — 2021-10-22
- 5.1.1 — 2020-06-30
- 5.1.0 — 2020-05-31
- 5.0.0 — 2020-05-30
- 4.0.0 — 2018-11-17
- 3.0.1 — 2015-04-21
- 3.0.0 — 2015-04-13
- 2.0.3 — 2015-01-03
- 2.0.2 — 2014-12-04
- 2.0.1 — 2014-11-24
- 2.0.0 — 2014-10-20
- 1.0.2 — 2014-09-07
- … 13 more at https://npm.io/package/jpeg-recompress-bin/versions

## README

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

> Compress JPEGs by re-encoding to the smallest JPEG quality while keeping perceived visual quality the same and by making sure huffman tables are optimized

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


## Install

```
$ npm install --save jpeg-recompress-bin
```


## Usage

```js
import {execFile} from 'node:child_process';
import jpegRecompress from 'jpeg-recompress-bin';

execFile(jpegRecompress, ['--quality high', '--min 60', 'input.jpg', 'output.jpg'], error => {
	console.log('Image minified');
});
```


## CLI

```
$ npm install --global jpeg-recompress-bin
```

```
$ jpeg-recompress --help
```


## License

MIT © [Imagemin](https://github.com/imagemin)

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