The imv package provides an image viewer.
Rename the file download(s) before extracting:
mv -v v5.0.1.tar.gz imv-v5.0.1.tar.gz
Graphical environment (Xorg-Server or Wayland), ICU, libxkbcommon, and Pango (with Cairo)
asciidoc, libheif, libjpeg-turbo, libjxl, libpng, librsvg, libtiff, libwebp, libnsbmp, libnsgif, and qoi
Apply a patch to move the Wayland and X11 backends to the libexec directory:
patch -Np1 -i ../imv-v5.0.1-libexecdir-1.patch
Include the stdio header to allow building the librsvg backend:
sed -i '6a #include <stdio.h>' src/backend_librsvg.c
Install imv by running the following commands:
mkdir build &&
cd build &&
meson setup .. \
--prefix=/usr \
--libexecdir=/usr/libexec \
--buildtype=release \
-D windows=all \
-D unicode=icu \
-D test=disabled \
-D contrib-commands=false &&
ninja
Now, as the root user:
ninja install
--buildtype=release: Specify a buildtype
suitable for stable releases of the package, as the default may
produce unoptimized binaries.
--libexecdir=/usr/libexec: If the recommended
patch was applied, this parameter moves the Wayland and X11 backends to
/usr/libexec.
-D windows=all: This parameter builds support for
Wayland and X11; imv determines which to use at runtime.
-D unicode=icu: This parameter sets ICU as the
Unicode backend.
-D tests=disabled: This parameter disables tests.
-D contrib-commands=false: This parameter prevents
the installation of contributed commands. If you wish to install them,
remove this parameter.