Automic VaultAutomic Vault

brew

Install jbig2enc with Homebrew, apk, apt, MacPorts, Nix

JBIG2 encoder (for monochrome documents). Version 0.32 via Homebrew; verified 2026-06-19.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install jbig2enc

local Homebrew formula metadata

MacPortsverified · 94%
sudo port install jbig2enc

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

Linux

Alpine Linux apkverified · 92%
sudo apk add jbig2enc

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

Debian aptverified · 92%
sudo apt install jbig2

Debian stable package indexes · jbig2 · source: deb.debian.org

Nixverified · 92%
nix profile install nixpkgs#jbig2enc

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

overview

Package summary

JBIG2 encoder (for monochrome documents)

Commands and aliases

  • jbig2
  • jbig2topdf.py

history

Project history and usage

jbig2enc is a command-line JBIG2 encoder for monochrome document images. Its README describes JBIG2 as a bi-level image format that can outperform Group 4 fax compression and says the tool can generate JBIG2 streams, fragments for embedding in PDFs, symbol extraction and classification, refinement coding, and multipage document compression.

Project history

The public GitHub repository was created in 2009, and the bundled ChangeLog records releases as early as the 0.21-era work on PDF output and old-book scans. The project grew around Leptonica integration, with repeated releases updating Leptonica compatibility, Windows build support, autotools, CMake, Meson, and the helper script later named jbig2topdf.py.

Adoption history

Homebrew packages the executable as jbig2enc, while Debian and Ubuntu expose the related command through a jbig2 package name. OCRmyPDF documentation treats a JBIG2 encoder as an optional but recommended component for smaller OCR-produced PDFs, which is one of the main reasons the encoder matters in Unix packaging even though the upstream project is small.

How it is used

Typical usage is document-pipeline work: encode scanned bilevel images with jbig2, then use jbig2topdf.py to wrap the JBIG2 output into a PDF. The README also documents standalone .jb2 output and sample commands for multi-image PDF creation.

Why package nerds care

jbig2enc sits at an awkward packaging boundary: it is a tiny specialist encoder, but it unlocks much smaller scanned-document PDFs for tools higher in the stack. Packagers also care about its history because JBIG2 patent concerns long affected distribution decisions, while later releases focused on build-system portability and memory-safety fixes.

Timeline

  • 2009: Public GitHub repository created and version 0.27 recorded with Leptonica 1.58 support.
  • 2012: Version 0.28 added autotools support, a Visual C++ solution, version reporting, and PDF DPI fixes.
  • 2017: Version 0.29 fixed builds with Leptonica 1.70 and adjusted reference counting.
  • 2024: Version 0.30 moved PDF helper support to Python 3, added CMake, standalone .jb2 support, DPI options, and ARM endian fixes.
  • 2026: Versions 0.31 and 0.32 added build-system work, CI improvements, argument checks, C++17 requirements, and memory-leak fixes.

Related projects

  • The README names Leptonica as a required imaging library and links related jbig2enc sample and minidjvu projects. In package-manager use it is often encountered through OCRmyPDF and other scanned-document workflows.

security posture

Risk level: green

narrow executable package without higher-risk signals.

Risk classifier

green risk · low confidence · appliance

Why

  • narrow executable package without higher-risk signals

Signals

  • metadata:no-higher-risk-signals

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 4 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
jbig2cliglobal executable
jbig2topdf.pycliglobal 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 version0.32
manager updated2026-06-19
local dataok
upstreamcurrent
latest detected0.32

https://github.com/agl/jbig2enc

  • okNo freshness warnings were generated.

install metadata

Package metadata

Package keybrew:jbig2enc
Version0.32
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/jbig2enc
Homepagehttps://github.com/agl/jbig2enc
Repositoryhttps://github.com/agl/jbig2enc
Upstream docshttps://github.com/agl/jbig2enc/blob/master/README.md
LicenseApache-2.0
Source archivehttps://github.com/agl/jbig2enc/archive/refs/tags/0.32.tar.gz
Last updated2026-06-19T22:36:09Z
Pulseupdated
Dependenciesgiflib, jpeg-turbo, leptonica, libpng, libtiff, webp
Build dependenciesautoconf, automake, libtool, pkgconf
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 Namejbig2enc
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • 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.

Debian apt95%

jbig2 0.30-1

encoder for JBIG2 - command-line tool

https://github.com/agl/jbig2enc

sudo apt install jbig2
  • Section: utils
  • Architecture: amd64
  • Source Package: jbig2enc
  • 3 dependencies
  • normalized package name match
  • Matched by: Jbig2enc
Debian stable package indexes · deb.debian.org · Debian stable package indexes: jbig2 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libjbig2enc-dev 0.30-1

encoder for JBIG2 - development headers

https://github.com/agl/jbig2enc

sudo apt install libjbig2enc-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: jbig2enc
  • 2 dependencies
  • normalized package name match
  • Matched by: Jbig2enc
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libjbig2enc-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libjbig2enc0t64 0.30-1

encoder for JBIG2 - libraries

https://github.com/agl/jbig2enc

sudo apt install libjbig2enc0t64
  • Section: libs
  • Architecture: amd64
  • Source Package: jbig2enc
  • 6 dependencies
  • 1 provides
  • 1 optional deps
  • normalized package name match
  • Matched by: Jbig2enc
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libjbig2enc0t64 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

jbig2enc

nix profile install nixpkgs#jbig2enc
  • normalized package name match
  • Matched by: Jbig2enc
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/jb/jbig2enc/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

jbig2 0.29-2.1build1

encoder for JBIG2 - command-line tool

https://github.com/agl/jbig2enc

sudo apt install jbig2
  • Section: universe/utils
  • Architecture: amd64
  • Source Package: jbig2enc
  • 3 dependencies
  • normalized package name match
  • Matched by: Jbig2enc
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: jbig2 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

libjbig2enc-dev 0.29-2.1build1

encoder for JBIG2 - development headers

https://github.com/agl/jbig2enc

sudo apt install libjbig2enc-dev
  • Section: universe/libdevel
  • Architecture: amd64
  • Source Package: jbig2enc
  • 2 dependencies
  • normalized package name match
  • Matched by: Jbig2enc
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libjbig2enc-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

libjbig2enc0t64 0.29-2.1build1

encoder for JBIG2 - libraries

https://github.com/agl/jbig2enc

sudo apt install libjbig2enc0t64
  • Section: universe/libs
  • Architecture: amd64
  • Source Package: jbig2enc
  • 6 dependencies
  • 1 provides
  • 1 optional deps
  • normalized package name match
  • Matched by: Jbig2enc
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libjbig2enc0t64 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

jbig2enc 0.30-r0

JBIG2 Encoder

https://github.com/agl/jbig2enc

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

jbig2enc-dev 0.30-r0

JBIG2 Encoder (development files)

https://github.com/agl/jbig2enc

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

jbig2enc-doc 0.30-r0

JBIG2 Encoder (documentation)

https://github.com/agl/jbig2enc

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

jbig2enc-static 0.30-r0

JBIG2 Encoder (static library)

https://github.com/agl/jbig2enc

sudo apk add jbig2enc-static
  • License: Apache-2.0
  • Architecture: x86_64
  • Source Package: jbig2enc
  • normalized package name match
  • Matched by: Jbig2enc
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: jbig2enc-static from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
MacPorts95%

jbig2enc

sudo port install jbig2enc
  • normalized package name match
  • Matched by: Jbig2enc
MacPorts ports tree · api.github.com · MacPorts ports tree: graphics/jbig2enc/Portfile from https://api.github.com/repos/macports/macports-ports/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