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

223.7. python3-pillow-heif-1.8.0

HEIF and AVIF for Pillow, through libheif

1.8.0-1 · BSD-3-Clause · 0.3 SBU · 327.0 KiB, 33 files · 42_graphics, 151 of 189 · ports/core/python-libs/python3-pillow-heif

Homepage: https://github.com/bigcat88/pillow_heif

Why it is in KDOS. The comment above the 3 ports from python3-pillow to python3-pillow-heif in script/phases/42_graphics/packages.d/python-libs.txt:

The compiled python bindings a document pipeline needs: an imaging library, a PDF rewriter and a HEIF decoder. Each binds a system library this tree already builds, which is why they are ports rather than entries in somebody's vendor bundle.

Depends on: python3, python3-setuptools, python3-wheel, python3-pip, python3-pillow, libheif, pkgconf.

Required by (1): ocrmypdf.

Sources: pillow-heif-1.8.0.tar.gz (16.6 MiB). Every step kpkg takes applies to this port.

Install: script/chroot/exec.sh bash -c 'source script/phases/42_graphics/phase.env && kpkg install python3-pillow-heif'

build.sh:

pip3 install --ignore-installed --no-deps --no-index --no-build-isolation --root=$PKG --prefix=/usr .

Directories: /usr/lib/python3.14/site-packages/pillow_heif, /usr/lib/python3.14/site-packages/pillow_heif-1.8.0.dist-info, /usr/share/licenses/python3-pillow-heif.