leptonica

Install command:
brew install leptonica

Image processing and image analysis library

http://www.leptonica.org/

License: BSD-2-Clause

Development: Pull requests

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

Formula code: leptonica.rb on GitHub

Bottle (binary package) installation support provided for:

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

Current versions:

stable ✅ 1.87.0

Depends on:

giflib 6.1.3 Library and utilities for processing GIFs
jpeg-turbo 3.2.1 JPEG image codec that aids compression and decompression
libpng 1.6.59 Library for manipulating PNG images
libtiff 4.7.2 TIFF library and utilities
openjpeg 2.5.4 Library for JPEG-2000 image manipulation
webp 1.6.0 Image format providing lossless and lossy compression for web images

Depends on when building from source:

pkgconf 3.0.10 Package compiler and linker metadata toolkit

Binaries: convertfilestopdf, convertfilestops, convertformat, convertsegfilestopdf, convertsegfilestops, converttopdf, converttops, fileinfo, imagetops, xtractprotos

GitHub Packages downloads:

Last 30 days567,880
Downloads27,023,810
Analytics install events (30 days)16,114
Downloads / install events (30 days)35.2×

Source: GitHub Packages, fetched 2026-11-12T00:52:05Z. Analytics dates: 2026-10-13 to 2026-11-12. 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
Installs16,11441,741364,272
Installs (--HEAD)0033
Installs on Request8262,00829,076
Installs on Request (--HEAD)0031
Build Errors2