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

195.6. openimageio-3.1.17.0

Image reading, writing and processing for film pipelines — Blender's image I/O, with oiiotool

Version 3.1.17.0, release 1
Shelf image-libs — Raster image formats, codecs, metadata, processing, barcodes, and terminal image output
Phase 42_graphics (Graphics Stack), 135 of 189 in build order
Licence Apache-2.0 AND MIT
Homepage https://openimageio.org/
Build time 9.4 SBU
Installed size 22.0 MiB in 94 files
Recipe ports/core/image-libs/openimageio/kpkgbuild

About

OpenImageIO (OIIO) reads, writes and processes images for film and visual-effects pipelines: one API over OpenEXR, TIFF, JPEG, PNG, JPEG XL, WebP, HEIF, JPEG 2000, GIF, camera raw, OpenVDB and video frames through FFmpeg, with colour management from OpenColorIO, an image cache, a texture system and ImageBufAlgo processing. It is Blender’s image I/O, and it installs oiiotool, iinfo, maketx and the other command-line tools, and the Python module.

Sources

Dependencies

Depends on: cmake, ninja, pkgconf, zlib, bzip2, imath, openexr, libjpeg-turbo, libpng, libtiff, libdeflate, libjxl, libwebp, openjpeg, giflib, libheif, libraw, freetype2, ffmpeg, opencolorio, onetbb, openvdb, pugixml, fmt, python3, python3-pybind11, numpy.

Required by (1): blender.

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.

Installation

From the repository root, inside the build container, this is the line kdosbuild runs for the port:

script/chroot/exec.sh bash -c 'source script/phases/42_graphics/phase.env && kpkg install openimageio'

What kpkg does

kpkg runs these steps, in this order, as root inside the chroot. The port directory is /ports/core/image-libs/openimageio.

1. Verify every declared source. Each file a sha256 = line names, found in the port directory or in /var/cache/kpkg/sources, must hash to its line; a mismatch stops the build before anything is unpacked.

cd /ports/core/image-libs/openimageio
echo '92a26c0af4ffc6676d72d9dfe0e991eb45fdf3192abee3d0855a24d6c721b013  openimageio-3.1.17.0.tar.gz' | sha256sum -c -
echo '0e3f53a377fdcdc5f9fed7a4c0d4f99e82bbb64175233bd13427fef9a771f4a1  robin-map-1.4.1.tar.gz' | sha256sum -c -

2. Unpack. The work directory is emptied and the first source is unpacked into $SRC with its top directory stripped; any later tarball lands unstripped beside it in $SRC_ROOT, and a file that is not a tarball is copied into $SRC.

SRC_ROOT=/var/cache/kpkg/work/openimageio
SRC=$SRC_ROOT/openimageio-3.1.17.0
PKG=$SRC_ROOT/pkg
rm -rf "$SRC_ROOT"
mkdir -p "$SRC" "$PKG"
tar --no-same-permissions --warning=no-unknown-keyword -xf openimageio-3.1.17.0.tar.gz -C "$SRC" --strip-components=1
tar --no-same-permissions --warning=no-unknown-keyword -xf robin-map-1.4.1.tar.gz -C "$SRC_ROOT"

Every config.guess and config.sub older than automake’s is then replaced with automake’s, so a configure script recognises the musl target.

3. Build. build.sh is sourced in a subshell under set -e, from $SRC, with name, version, release and the recipe’s helpers _robinmap and the five paths PKGNAME, PORT_SRC, SRC_ROOT, SRC and PKG set as shell variables. Its body, verbatim:

mkdir build && cd build
cmake .. -G Ninja -DCMAKE_POLICY_VERSION_MINIMUM=3.5 \
	-DCMAKE_BUILD_TYPE=Release \
	-DCMAKE_INSTALL_PREFIX=/usr \
	-DCMAKE_INSTALL_LIBDIR=lib \
	-DCMAKE_SKIP_INSTALL_RPATH=ON \
	-DBUILD_SHARED_LIBS=ON \
	-DBUILD_TESTING=OFF \
	-DOIIO_BUILD_TESTS=OFF \
	-DOIIO_BUILD_TOOLS=ON \
	-DSTOP_ON_WARNING=OFF \
	-DUSE_CCACHE=OFF \
	-DINSTALL_FONTS=OFF \
	-DINSTALL_DOCS=ON \
	-DOpenImageIO_BUILD_MISSING_DEPS= \
	-DROBINMAP_INCLUDE_DIR="$SRC_ROOT/robin-map-$_robinmap/include" \
	-DUSE_EXTERNAL_PUGIXML=ON \
	-DUSE_PYTHON=ON \
	-Dpybind11_DIR="$(python3 -m pybind11 --cmakedir)" \
	-DUSE_QT=OFF \
	-DUSE_FFMPEG=ON \
	-DUSE_FREETYPE=ON \
	-DUSE_GIF=ON \
	-DUSE_JXL=ON \
	-DUSE_LIBHEIF=ON \
	-DUSE_LIBRAW=ON \
	-DUSE_OPENCOLORIO=ON \
	-DUSE_OPENJPEG=ON \
	-DUSE_OPENVDB=ON \
	-DUSE_TBB=ON \
	-DUSE_WEBP=ON \
	-DCMAKE_REQUIRE_FIND_PACKAGE_WebP=ON \
	-DUSE_PTEX=OFF \
	-DUSE_OPENCV=OFF \
	-DUSE_DCMTK=OFF \
	-DUSE_LIBUHDR=OFF \
	-DUSE_OPENJPH=OFF \
	-DUSE_R3DSDK=OFF \
	-DUSE_NUKE=OFF
ninja
DESTDIR=$PKG ninja install

The switches, and why each is set:

The common switches of each build system are explained in the Flag glossary.

4. Package. kpkg removes libtool archives, the info directory index, mimeinfo.cache and every fonts.dir from $PKG, copies the source’s licence files into /usr/share/licenses/openimageio, prunes what the image does not ship, lints the tree and rolls it reproducibly:

tar --sort=name --format=gnu --numeric-owner --owner=0 --group=0 \
    --mtime=@$SOURCE_DATE_EPOCH \
    --use-compress-program='xz -9 -T0 --block-size=32MiB --no-adjust' \
    -cf openimageio-3.1.17.0-1.tar.xz -C "$PKG" .

5. Adopt. kpkgadd installs the package’s files over the root, refusing a path another package owns, records the file list in /var/lib/kpkg/db/openimageio, and runs the triggers its paths call for.

Contents

Installed programs: iconvert, idiff, igrep, iinfo, maketx, oiiotool, testtex.

Installed libraries: libOpenImageIO.so, libOpenImageIO_Util.so.

Installed directories: /usr/include/OpenImageIO, /usr/lib/cmake/OpenImageIO, /usr/lib/python3.14/site-packages/OpenImageIO, /usr/share/doc/OpenImageIO, /usr/share/licenses/openimageio.

Short descriptions

OpenImageIO.pc OpenImageIO is a library for reading and writing images.