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

257.68. kimageformats-6.31.0

KDE Frameworks: QImage plugins for AVIF, HEIF, JPEG XL, JPEG 2000, EXR, RAW, PSD, XCF, Krita and more

6.31.0-1 · LGPL-2.0-or-later AND LGPL-2.1-or-later AND BSD-2-Clause AND (LGPL-2.1-only OR LGPL-3.0-only) AND BSD-3-Clause · 5.0 SBU · 4.7 MiB, 36 files · 43_toolkits, 199 of 344 · ports/core/kf6/kimageformats

Homepage: https://invent.kde.org/frameworks/kimageformats

KImageFormats is a set of Qt image format plugins, so that every Qt program that reads an image through QImageReader also reads AVIF, HEIF, JPEG XL, JPEG 2000, OpenEXR, camera raw files, DirectDraw surfaces, Krita and OpenRaster documents, Photoshop, GIMP’s XCF, Radiance HDR, QOI and a dozen older formats. gwenview and kolourpaint name it in depends; thumbnails in Dolphin and the file dialogs use the same plugins.

Depends on: cmake, ninja, pkgconf, extra-cmake-modules, qt6-qtbase, karchive, libavif, libheif, libjxl, openjpeg, openexr, libraw, ghostscript.

Required by (4): gwenview, koko, kolourpaint, kscreen.

Sources: kimageformats-6.31.0.tar.xz (32.9 MiB). Every step kpkg takes applies to this port.

Install: script/chroot/exec.sh bash -c 'source script/phases/43_toolkits/phase.env && kpkg install kimageformats'

build.sh:

cmake -S . -B build -G Ninja \
	-D CMAKE_INSTALL_PREFIX=/usr \
	-D KDE_INSTALL_LIBDIR=lib \
	-D CMAKE_BUILD_TYPE=Release \
	-D KDE_INSTALL_USE_QT_SYS_PATHS=ON \
	-D BUILD_TESTING=OFF \
	-D KIMAGEFORMATS_DDS=ON \
	-D KIMAGEFORMATS_HEIF=ON \
	-D KIMAGEFORMATS_JXL=ON \
	-D KIMAGEFORMATS_JP2=ON \
	-D KIMAGEFORMATS_WITH_KNOWN_CRASHES_JXR=OFF \
	-D CMAKE_REQUIRE_FIND_PACKAGE_KF6Archive=ON \
	-D CMAKE_REQUIRE_FIND_PACKAGE_libavif=ON \
	-D CMAKE_REQUIRE_FIND_PACKAGE_OpenEXR=ON \
	-D CMAKE_REQUIRE_FIND_PACKAGE_OpenJPEG=ON \
	-D CMAKE_REQUIRE_FIND_PACKAGE_LibRaw=ON \
	-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build

Directories: /usr/lib/cmake/KF6ImageFormats, /usr/share/licenses/kimageformats.

Each of the five libraries the CMAKE_REQUIRE_FIND_PACKAGE_ switches name is optional upstream, and a missing one would leave its formats out with only a line in the configure summary.

The EPS plugin is built whenever Qt Print Support is found, which it always is in qt6-qtbase. It renders through Ghostscript’s gs, which it runs at read time and without which it reads nothing, so ghostscript is a run-time dependency in depends.

The tarball is about 34 MB: most of it is the test images under autotests/, which BUILD_TESTING=OFF leaves unread.