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

118.22. exiv2-0.28.9

Read and write image metadata — EXIF, IPTC and XMP

0.28.9-1 · GPL-2.0-or-later · 1.6 SBU · 5.2 MiB, 59 files · 41_system, 701 of 1047 · ports/core/image-libs/exiv2

Homepage: https://exiv2.org/

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

40 000 photos on a stick are 40 000 files named DSC_* until something reads the date, the lens and the position out of them.

Exiv2 reads and writes image metadata: EXIF, IPTC and XMP, the date, camera, lens and position a camera writes into every photo. It is a C++ library and the exiv2 command. gimp, darktable, digikam, krita, gwenview, rawtherapee, qgis and gexiv2 link it.

Depends on: cmake, ninja, pkgconf, expat, zlib, brotli, inih.

Required by (15): darktable, digikam, gexiv2, gimp, gthumb, gwenview, kfilemetadata, koko, krita, libkexiv2, plasma-camera, qgis, rawtherapee, stellarium, swayimg.

Sources: exiv2-0.28.9.tar.gz (45.0 MiB). Every step kpkg takes applies to this port.

Optional, off in KDOS. These switches in build.sh turn off a feature whose library is a port here. The recipe may turn each off on purpose, or because the library was not yet a port when the recipe was written; this list cannot tell which.

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

build.sh:

mkdir -p build && cd build
cmake .. -G Ninja \
	-DCMAKE_POLICY_VERSION_MINIMUM=3.5 \
	-DCMAKE_BUILD_TYPE=Release \
	-DCMAKE_INSTALL_PREFIX=/usr \
	-DCMAKE_INSTALL_LIBDIR=lib \
	-DBUILD_SHARED_LIBS=ON \
	-DEXIV2_ENABLE_XMP=ON \
	-DEXIV2_ENABLE_EXTERNAL_XMP=OFF \
	-DEXIV2_ENABLE_PNG=ON \
	-DEXIV2_ENABLE_BMFF=ON \
	-DEXIV2_ENABLE_BROTLI=ON \
	-DEXIV2_ENABLE_VIDEO=ON \
	-DEXIV2_ENABLE_LENSDATA=ON \
	-DEXIV2_ENABLE_INIH=ON \
	-DEXIV2_ENABLE_NLS=OFF \
	-DEXIV2_ENABLE_WEBREADY=OFF \
	-DEXIV2_ENABLE_CURL=OFF \
	-DEXIV2_BUILD_DOC=OFF \
	-DEXIV2_BUILD_SAMPLES=OFF \
	-DEXIV2_BUILD_UNIT_TESTS=OFF \
	-DEXIV2_BUILD_EXIV2_COMMAND=ON
ninja
DESTDIR=$PKG ninja install

Programs: exiv2.

Libraries: libexiv2.so.

Directories: /usr/include/exiv2, /usr/lib/cmake/exiv2, /usr/share/licenses/exiv2.