Skip to the text
KDOS
Menu
kdos.dev KDOS from Scratch KDOS 0.2 · 4dd4a10 · 2026-11-30 Contents Index

152.1. jbig2dec-0.20

JBIG2 image decoder, the scanned-page codec in PDF

0.20-1 · AGPL-3.0-or-later · 0.1 SBU · 219.9 KiB, 9 files · 41_system, 99 of 1047 · ports/core/documents/jbig2dec

Homepage: https://jbig2dec.com/

Why it is in KDOS. The comment above it in script/phases/41_system/packages.d/documents.txt:

The JBIG2 codec a scanned page in a PDF is encoded with, taken as a port so mupdf does not carry a second copy of it.

Depends on: libpng, zlib.

Required by (2): ghostscript, mupdf.

Sources: jbig2dec-0.20.tar.gz (485.9 KiB). Every step kpkg takes applies to this port.

Install: script/chroot/exec.sh bash -c 'source script/phases/41_system/phase.env && kpkg install jbig2dec'

build.sh:

./configure --prefix=/usr --libdir=/usr/lib --disable-static --with-libpng
make
make DESTDIR=$PKG install

Programs: jbig2dec.

Libraries: libjbig2dec.so.

Directories: /usr/share/licenses/jbig2dec.