# mozjpeg

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

Latest version **8.0.0** (published 2021-11-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install mozjpeg
pnpm add mozjpeg
yarn add mozjpeg
bun add mozjpeg
```

Provides the command `mozjpeg`.

## 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 | 8.0.0 |
| Published | 2021-11-10 |
| First published | 2014-04-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | separate (@types/mozjpeg) |
| Module format | ESM |
| Node | ^12.20.0 \|\| ^14.13.1 \|\| >=16.0.0 |
| Dependencies | 2 |
| Unpacked size | 1.6 MB |
| Known vulnerabilities | 0 |
| Install scripts | yes |
| GitHub stars | 121 |
| Maintainers | nothingismagick, sindresorhus, kevva, shinnn, 1000ch, bradbaris, xhmikosr |
| Keywords | imagemin, jpeg, jpg, img, image, compress, minify, mozjpeg, optimize |

## Links

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

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

- 8.0.0 (latest) — 2021-11-10
- 4.1.3-rc.4 (next) — 2016-05-09
- 7.1.1 — 2021-10-14
- 7.1.0 — 2021-05-29
- 7.0.0 — 2020-05-29
- 6.0.1 — 2018-10-31
- 6.0.0 — 2018-05-08
- 5.0.0 — 2017-12-27
- 4.1.3-rc.3 — 2016-05-09
- 4.1.3-rc.2 — 2016-05-09
- 4.1.3-rc.1 — 2016-05-09
- 4.1.1 — 2015-12-13
- 4.1.0 — 2015-12-13
- 4.0.1 — 2015-06-06
- 4.0.0 — 2015-04-22
- … 19 more at https://npm.io/package/mozjpeg/versions

## README

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

> [mozjpeg](https://github.com/mozilla/mozjpeg) is a production-quality JPEG encoder that improves compression while maintaining compatibility with the vast majority of deployed decoders

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


## Install

```
$ npm install mozjpeg
```


## Usage

```js
import {execFile} from 'node:child_process';
import mozjpeg from 'mozjpeg';

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


## CLI

```
$ npm install --global mozjpeg
```

```
$ mozjpeg --help
```


## License

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

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