The imv package provides an image viewer.
Download (HTTP): https://git.sr.ht/~exec64/imv/archive/v5.0.1.tar.gz
Recommended patch: https://glfs-book.github.io/slfs/patches/imv/imv-5.0.1-libexecdir-1.patch
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-5.0.1-libexecdir-1.patch
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.