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.5.1 Cross-platform make

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

GitHub Packages downloads:

Last 30 days31,979
Downloads932,091
Analytics install events (30 days)2,145
Downloads / install events (30 days)14.9×

Source: GitHub Packages, fetched 2026-11-30T00:59:46Z. Analytics dates: 2026-10-31 to 2026-11-30. 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,1456,94021,941
Installs (--HEAD)011
Installs on Request2176241,665
Installs on Request (--HEAD)011
Build Errors0