# jpegtran-bin

> jpegtran (part of libjpeg-turbo) bin-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 jpegtran-bin
pnpm add jpegtran-bin
yarn add jpegtran-bin
bun add jpegtran-bin
```

Provides the command `jpegtran`.

## Health

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

Positive: has types package; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 7.0.0 |
| Published | 2022-05-12 |
| First published | 2012-12-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | separate (@types/jpegtran-bin) |
| Module format | ESM |
| Node | ^14.13.1 \|\| >=16.0.0 |
| Dependencies | 2 |
| Unpacked size | 1.6 MB |
| Known vulnerabilities | 0 |
| Install scripts | yes |
| GitHub stars | 96 |
| Author | Sindre Sorhus |
| Maintainers | nothingismagick, sindresorhus, kevva, 1000ch, xhmikosr, shinnn |
| Keywords | imagemin, compress, image, img, jpeg, jpg, minify, optimize, jpegtran |

## Links

- npm: https://www.npmjs.com/package/jpegtran-bin
- Repository: https://github.com/imagemin/jpegtran-bin
- Homepage: https://github.com/imagemin/jpegtran-bin#readme
- Issues: https://github.com/imagemin/jpegtran-bin/issues
- npm.io page: https://npm.io/package/jpegtran-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 — 2020-06-30
- 5.0.1 — 2020-05-30
- 5.0.0 — 2020-05-29
- 4.0.0 — 2018-11-02
- 3.2.0 — 2016-12-14
- 3.1.0 — 2016-07-13
- 3.0.6 — 2015-11-13
- 3.0.5 — 2015-10-10
- 3.0.4 — 2015-07-04
- 3.0.3 — 2015-07-03
- 3.0.2 — 2015-06-16
- 3.0.1 — 2015-06-06
- … 21 more at https://npm.io/package/jpegtran-bin/versions

## README

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

> [libjpeg-turbo](http://libjpeg-turbo.virtualgl.org/) is a derivative of libjpeg that uses SIMD instructions (MMX, SSE2, NEON) to accelerate baseline JPEG compression and decompression on x86, x86-64, and ARM systems. On such systems, libjpeg-turbo is generally 2-4x as fast as the unmodified version of libjpeg, all else being equal.

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


## Install

```
$ npm install --save jpegtran-bin
```


## Usage

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

execFile(jpegtran, ['-outfile', 'output.jpg', 'input.jpg'], error => {
	console.log('Image minified!');
});
```


## CLI

```
$ npm install --global jpegtran-bin
```

```
$ jpegtran --help
```


## License

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

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