Raspberry Pi 4 - Photo Viewing

Raspberry Pi 4: Chronicling the Desktop Experience – Viewing Photos – Week 23

Last Updated on August 20, 2020

Compiling feh

Here’s the steps I took to compile and install this program.

$ sudo apt update
$ sudo apt install -y libimlib2-dev libjpeg-progs libexif-dev
$ mkdir feh_tmp
$ cd feh_tmp
$ wget https://feh.finalrewind.org/feh-3.3.tar.bz2
$ tar -xjf feh-3.3.tar.bz2
$ cd feh-3.3
$ make -j4 exif=1
$ sudo make install

My system already had some packages already installed. If you’re missing dependencies, issue the following command:

$ sudo apt install imagemagick, libcurl4-openssl-dev libexif12 libpng-dev libx11-dev libxinerama-dev libxt-dev

Compilation took less than 10 seconds providing you use the -j4 flag.

This lets the compilation use all of the RPI4’s 4 cores.

Running the command:

$ sudo make install

takes the following actions:

installing manuals to /usr/local/share/man
installing docs to /usr/local/share/doc/feh
installing executables to /usr/local/bin
installing fonts to /usr/local/share/feh/fonts
installing images to /usr/local/share/feh/images
installing icon to /usr/local/share/icons/hicolor/48×48/apps
installing icon to /usr/local/share/icons/hicolor/scalable/apps
installing examples to /usr/local/share/doc/feh/examples
installing desktop file to /usr/local/share/applications

WebP

If you use WebP files, you’ll need to following a few more steps, as Raspbian’s imlib2 package doesn’t support WebP. But that’s easy to fix with the following commands:

$ sudo apt install libwebp-dev
$ git clone git://github.com/gawen947/imlib2-webp
$ cd imlib2-webp
$ make -j4
$ sudo make install

Imlib2 is an advanced replacement for libraries like libXpm. Imlib2 provides many more features with much greater flexibility and speed than standard libraries, including font rasterization, rotation, RGBA space rendering and blending, dynamic binary filters, scripting, and more.


Pages in this article:
Page 1 – Main page
Page 2 – Compiling gThumb
Page 3 – Compiling feh


Read all my blog posts about the RPI4.

Raspberry Pi 4 Blog
Week 36Manage your personal collections on the RPI4
Week 35Survey of terminal emulators
Week 34Search the desktop with the latest version of Recoll
Week 33Personal Information Managers on the RPI4
Week 32Keep a diary with the RPI4
Week 31Process complex mathematical functions, plot 2D and 3D graphs with calculators
Week 30Internet radio on this tiny computer. A detailed survey of open source software
Week 29Professionally manage your photo collection with digiKam
Week 28Typeset beautifully with LyX
Week 27Software that teaches young people how to learn basic computing skills and beyond
Week 26Firefox revisited - Raspbian now offers a real alternative to Chromium
Week 25Turn the Raspberry Pi 4 into a low power writing machine
Week 24Keep the kids learning and having fun
Week 23Lots of choices to view images
Week 22Listening to podcasts on the RPI4
Week 21File management on the RPI4
Week 20Open Broadcaster Software (OBS Studio) on the RPI4
Week 19Keep up-to-date with these news aggregators
Week 18Web Browsers Again: Firefox
Week 17Retro gaming on the RPI4
Week 16Screen capturing with the RPI4
Week 15Emulate the Amiga, ZX Spectrum, and the Atari ST on the RPI4
Week 14Choose the right model of the RPI4 for your desktop needs
Week 13Using the RPI4 as a screencaster
Week 12Have fun reading comics on the RPI4 with YACReader, MComix, and more
Week 11Turn the RPI4 into a complete home theater
Week 10Watching locally stored video with VLC, OMXPlayer, and others
Week 9PDF viewing on the RPI4
Week 8Access the RPI4 remotely running GUI apps
Week 7e-book tools are put under the microscope
Week 6The office suite is the archetypal business software. LibreOffice is tested
Week 5Managing your email box with the RPI4
Week 4Web surfing on the RPI4 looking at Chromium, Vivaldi, Firefox, and Midori
Week 3Video streaming with Chromium & omxplayerGUI as well as streamlink
Week 2A survey of open source music players on the RPI4 including Tauon Music Box
Week 1An introduction to the world of the RPI4 looking at musikcube and PiPackages

This blog is written on the RPI4.

Subscribe
Notify of
guest

This site uses Akismet to reduce spam. Please read our Comment FAQ before posting a comment.

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments