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 days553,329
Downloads26,922,577
Analytics install events (30 days)15,514
Downloads / install events (30 days)35.7×

Source: GitHub Packages, fetched 2026-11-07T00:49:07Z. Analytics dates: 2026-10-08 to 2026-11-07. 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
Installs15,51442,481369,415
Installs (--HEAD)0238
Installs on Request8182,05829,795
Installs on Request (--HEAD)0236
Build Errors2