mozjpeg

Install command:
brew install mozjpeg

Improved JPEG encoder

https://github.com/mozilla/mozjpeg

License: IJG AND Zlib AND BSD-3-Clause

Development: Pull requests

Formula JSON API: /api/formula/mozjpeg.json

Formula code: mozjpeg.rb on GitHub

Bottle (binary package) installation support provided for:

macOS on
Apple Silicon
golden gate ✅
tahoe ✅
sequoia ✅
sonoma ✅
ventura ✅
monterey ✅
macOS on
Intel
sonoma ✅
ventura ✅
monterey ✅
Linux ARM64 ✅
x86_64 ✅

Current versions:

stable ✅ 4.1.5

Patches:

https://github.com/mozilla/mozjpeg/commit/1644bdb7d2fac66cd0ce25adef7754e008b5bc1e

Keg-only because it conflicts with the standard libjpeg.

Depends on:

libpng 1.6.59 Library for manipulating PNG images

Depends on when building from source:

cmake 4.4.5 Cross-platform make

Binaries: cjpeg, djpeg, jpegtran, rdjpgcom, tjbench, wrjpgcom

GitHub Packages downloads:

Last 30 days29,088
Downloads909,780
Analytics install events (30 days)2,690
Downloads / install events (30 days)10.8×

Source: GitHub Packages, fetched 2026-11-10T00:50:56Z. Analytics dates: 2026-10-11 to 2026-11-10. Totals exclude downloads from Bintray before the migration to GitHub Packages. Downloads and install attempts measure different things; the difference does not count analytics opt-outs. Definitions and limitations.

Analytics:

30 days90 days365 days
Installs2,6906,54021,161
Installs (--HEAD)012
Installs on Request2756441,614
Installs on Request (--HEAD)012
Build Errors0