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

119.1. pngquant-2.18.0

Lossy PNG compressor — reduces a truecolour PNG to a palette

2.18.0-1 · GPL-3.0-or-later · 0.1 SBU · 88.2 KiB, 3 files · 41_system, 616 of 1047 · ports/core/graphics/pngquant

Homepage: https://pngquant.org/

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

A PNG pass beside oxipng: pngquant reduces a truecolour image to a palette, which is lossy. noto-emoji runs every emoji image through it and zopflipng.

Depends on: libimagequant, libpng, lcms2, zlib.

Required by (1): noto-emoji.

Sources: pngquant-2.18.0.tar.gz (146.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 pngquant'

build.sh:

./configure --prefix=/usr --with-libimagequant --with-lcms2
make
make DESTDIR=$PKG install

Programs: pngquant.

Directories: /usr/share/licenses/pngquant.