mozjpeg
brew install mozjpegImproved 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 days | 29,088 |
|---|---|
| Downloads | 909,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 days | 90 days | 365 days | |
|---|---|---|---|
| Installs | 2,690 | 6,540 | 21,161 |
Installs (--HEAD) | 0 | 1 | 2 |
| Installs on Request | 275 | 644 | 1,614 |
Installs on Request (--HEAD) | 0 | 1 | 2 |
| Build Errors | 0 |