Automic VaultAutomic Vault

brew

Install leptonica with Homebrew, apk, dnf, MacPorts, Nix, pacman, zypper

Image processing and image analysis library. Version 1.87.0 via Homebrew; verified from local package data.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install leptonica

local Homebrew formula metadata

MacPortsverified · 94%
sudo port install leptonica

MacPorts ports tree · graphics/leptonica/Portfile · source: api.github.com

Linux

Alpine Linux apkverified · 92%
sudo apk add leptonica

Alpine Linux edge package indexes · leptonica · source: dl-cdn.alpinelinux.org

Fedora dnfverified · 92%
sudo dnf install leptonica

Fedora Rawhide package metadata · leptonica · source: dl.fedoraproject.org

Nixverified · 92%
nix profile install nixpkgs#leptonica

nixpkgs package indexes · pkgs/by-name/le/leptonica/package.nix · source: api.github.com

Arch Linux pacmanverified · 92%
sudo pacman -S leptonica

Arch Linux sync databases · leptonica · source: geo.mirror.pkgbuild.com

openSUSE zypperverified · 92%
sudo zypper install leptonica-devel

openSUSE Tumbleweed package metadata · leptonica-devel · source: download.opensuse.org

overview

Package summary

Image processing and image analysis library

Commands and aliases

  • convertfilestopdf
  • convertfilestops
  • convertformat
  • convertsegfilestopdf
  • convertsegfilestops
  • converttopdf
  • converttops
  • fileinfo
  • imagetops
  • xtractprotos

history

Project history and usage

Leptonica is Dan Bloomberg's open source C library for image processing and image analysis, with especially deep coverage of document-image operations used by OCR and page-processing tools.

Project history

Leptonica's official README metadata dates the work to 2001 and describes it as an open source C library for efficient image processing and image analysis. The project site emphasizes a pedagogical style: the code is accompanied by web pages explaining algorithms and design methods.

The library grew into a broad C toolkit covering raster operations, affine and projective transforms, morphology, convolution, connected components, image format I/O, PDF and PostScript generation, document cleanup, skew detection, dewarping, barcode experiments, and many supporting data structures.

Adoption history

Leptonica became important infrastructure below OCR and document-image projects. Its README lists Tesseract OCR, OpenCV, and jbig2enc among open source projects that use it.

The project's packaging history reflects a classic C-library role: distributions ship the library, headers, command-line utilities, and example programs so higher-level tools can depend on a stable native image-processing base.

How it is used

Developers link against liblept and use the pix-centered API for reading, transforming, analyzing, and writing images. The package also includes command-line programs such as file conversion and PDF/PostScript helpers that expose common library workflows.

Why package nerds care

Leptonica is significant because it is one of those quiet dependency packages that makes OCR stacks work. It is small enough to feel like a C utility library, but large enough to cover thousands of image-processing functions and the boring portability details that downstream packages need.

Timeline

  • 2001: Official metadata identifies Leptonica as an open source C library for image processing and image analysis.
  • 2010s: Leptonica moved into GitHub-based maintenance, with contributors preserving old distributions and modernizing build support.
  • 2024: Version 1.85.0 added PDF rendering support and many maintenance fixes.
  • 2025: Version 1.87.0 was distributed on December 24, 2025.

Related projects

  • Tesseract OCR is a major downstream user.
  • OpenCV and jbig2enc are listed by Leptonica as open source projects using the library.

security posture

Risk level: blue

broad file, network, media, or database tool signal.

Risk classifier

blue risk · medium confidence · tool

Why

  • broad file, network, media, or database tool signal

Signals

  • text:image

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 6 platform targets.
  • Installs with 6 runtime dependencies.
  • Build metadata lists 1 build dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

executables

Installed executables

CommandKindExposureNote
convertfilestopdfcliglobal executable
convertfilestopscliglobal executable
convertformatcliglobal executable
convertsegfilestopdfcliglobal executable
convertsegfilestopscliglobal executable
converttopdfcliglobal executable
converttopscliglobal executable
fileinfocliglobal executable
imagetopscliglobal executable
xtractprotoscliglobal executable

freshness

Version and freshness

These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.

page generated2026-07-08
manager version1.87.0
manager updated
local dataok
upstreamnot checked
latest detectednot detected

https://github.com/DanBloomberg/leptonica

install metadata

Package metadata

Package keybrew:leptonica
Version1.87.0
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/leptonica
Homepagehttp://www.leptonica.org/
Repositoryhttps://github.com/DanBloomberg/leptonica
Upstream docshttps://www.leptonica.org/
LicenseBSD-2-Clause
Source archivehttps://github.com/DanBloomberg/leptonica/releases/download/1.87.0/leptonica-1.87.0.tar.gz
Dependenciesgiflib, jpeg-turbo, libpng, libtiff, openjpeg, webp
Build dependenciespkgconf
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Nameleptonica
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Nix95%

leptonica

nix profile install nixpkgs#leptonica
  • normalized package name match
  • Matched by: Leptonica
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/le/leptonica/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
apk95%

leptonica 1.87.0-r0

Software that is broadly useful for image processing and image analysis applications

http://www.leptonica.com/

sudo apk add leptonica
  • License: custom
  • Architecture: x86_64
  • Source Package: leptonica
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Leptonica
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: leptonica from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

leptonica-dev 1.87.0-r0

Software that is broadly useful for image processing and image analysis applications (development files)

http://www.leptonica.com/

sudo apk add leptonica-dev
  • License: custom
  • Architecture: x86_64
  • Source Package: leptonica
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Leptonica
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: leptonica-dev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

leptonica-doc 1.87.0-r0

Software that is broadly useful for image processing and image analysis applications (documentation)

http://www.leptonica.com/

sudo apk add leptonica-doc
  • License: custom
  • Architecture: x86_64
  • Source Package: leptonica
  • normalized package name match
  • Matched by: Leptonica
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: leptonica-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
dnf95%

leptonica 1.87.0-4.fc45

C library for efficient image processing and image analysis operations

https://github.com/danbloomberg/leptonica

sudo dnf install leptonica
  • License: Leptonica
  • Category: Unspecified
  • Architecture: i686
  • Source Package: leptonica
  • 10 dependencies
  • 2 provides
  • normalized package name match
  • Matched by: Leptonica
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: leptonica from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

leptonica-devel 1.87.0-4.fc45

Development files for leptonica

https://github.com/danbloomberg/leptonica

sudo dnf install leptonica-devel
  • License: Leptonica
  • Category: Unspecified
  • Architecture: i686
  • Source Package: leptonica
  • 5 dependencies
  • 3 provides
  • normalized package name match
  • Matched by: Leptonica
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: leptonica-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

leptonica-tools 1.87.0-4.fc45

Leptonica utility tools

https://github.com/danbloomberg/leptonica

sudo dnf install leptonica-tools
  • License: Leptonica
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: leptonica
  • 4 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Leptonica
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: leptonica-tools from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

mingw32-leptonica 1.87.0-4.fc45

MinGW Windows Leptonica library

https://github.com/danbloomberg/leptonica

sudo dnf install mingw32-leptonica
  • License: Leptonica
  • Category: Unspecified
  • Architecture: noarch
  • Source Package: leptonica
  • 4 dependencies
  • 3 provides
  • normalized package name match
  • Matched by: Leptonica
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: mingw32-leptonica from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

mingw64-leptonica 1.87.0-4.fc45

MinGW Windows Leptonica library

https://github.com/danbloomberg/leptonica

sudo dnf install mingw64-leptonica
  • License: Leptonica
  • Category: Unspecified
  • Architecture: noarch
  • Source Package: leptonica
  • 4 dependencies
  • 3 provides
  • normalized package name match
  • Matched by: Leptonica
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: mingw64-leptonica from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
pacman95%

leptonica 1.87.0-1

Software that is broadly useful for image processing and image analysis applications

http://www.leptonica.com

sudo pacman -S leptonica
  • License: custom
  • Architecture: x86_64
  • 15 dependencies
  • normalized package name match
  • Matched by: Leptonica
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: leptonica from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
zypper95%

leptonica-devel 1.87.0-1.4

Leptonica Development Files

http://leptonica.org/

sudo zypper install leptonica-devel
  • License: BSD-2-Clause
  • Category: Development/Libraries/C and C++
  • Architecture: x86_64
  • Source Package: leptonica
  • 2 dependencies
  • 4 provides
  • normalized package name match
  • Matched by: Leptonica
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: leptonica-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

leptonica-tools 1.87.0-1.4

Leptonica tools

http://leptonica.org/

sudo zypper install leptonica-tools
  • License: BSD-2-Clause
  • Category: Productivity/Graphics/Other
  • Architecture: x86_64
  • Source Package: leptonica
  • 2 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Leptonica
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: leptonica-tools from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

libleptonica6 1.87.0-1.4

Library for image processing and image analysis applications

http://leptonica.org/

sudo zypper install libleptonica6
  • License: BSD-2-Clause
  • Category: System/Libraries
  • Architecture: x86_64
  • Source Package: leptonica
  • 11 dependencies
  • 3 provides
  • normalized package name match
  • Matched by: Leptonica
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: libleptonica6 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
MacPorts95%

leptonica

sudo port install leptonica
  • normalized package name match
  • Matched by: Leptonica
MacPorts ports tree · api.github.com · MacPorts ports tree: graphics/leptonica/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
Nix92%

fileinfo

nix profile install nixpkgs#fileinfo
  • installed executable or alias match
  • Matched by: Fileinfo
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/fi/fileinfo/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment