feh – versatile image viewer works from command line too.

2009-11-21 364 words 2 mins read

To install :

sudo yum install feh

From the info for the feh package:

feh – versatile image viewer works from command line too
premier image file handling library. feh has many features,
from simple single file viewing, to multiple file modes using
a slideshow or multiple windows. feh supports the creation of
montages as index prints with many user-configurable options.

One of the reasons, I install feh as one of the first packages on any installation is the reason that it can open multiple images like in stack. To make things even more simpler I create a alias like this:

alias v=’feh -p –scale-down -Z -r ’

with this alias in place I can go to any directory in bash and just type ”v *” to see all the images 🙂

Some good things you can do with feh are :

Have a theme or naming for option groups. You can have the name for option groups in $HOME/.fehrc or /etc/fehrc. If none exists then you can create one and then make a entry like below

amit -p –scale-down -Z -r

and then use

feh –theme amit *.jpg

or

feh -Tamit *.jpg

In my default install for feh, I have couple of entries which look quite interesting:

# Webcam mode, simply specify the url(s).
# e.g. feh -Twebcam http://cam1 http://cam2
webcam –multiwindow –reload 20

# Create an index of the current directory. This version uses . as the
# current dir, so you don’t even need any commandline arguments.
mkindex -iVO index.jpg .

# More ambitious version…
imgidx -iVO .fehindex.jpg –limit-width 1200 –thumb-width 90 –thumb-height 90 .

# Show a presentation
present –full-screen –sort name

# Booth mode 😉
booth –full-screen –hide-pointer –slideshow-delay 20

# Screw xscreensaver, use feh =)
screensave –full-screen –randomize –slideshow-delay 5

# Add tags to your html with ease 🙂
newimg -q -L ”\”%n\””

# Different menus
chrome –menu-bg /usr /share/feh/images/menubg_chrome.png
brushed –menu-bg /usr/share/feh/images/menubg_brushed.png
pastel –menu-bg /usr/share/feh/images/menubg_pastel.png
aluminium –menu-bg /usr/share/feh/images/menubg_aluminium.png
wood –menu-bg /usr/share/feh/images/menubg_wood.png
aqua –menu-bg /usr/share/feh/images/menubg_aqua.png
sky –menu-bg /usr/share/feh/images/menubg_sky.png
orange –menu-bg /usr/share/feh/images/menubg_orange.png
light –menu-bg /usr/share/feh/images/menubg_light.png
black –menu-bg /usr/share/feh/images/menubg_black.png –menu-style /usr/share/feh/fonts/black.style

Thats quite a lot of options ..  There are quite a lot of others you can see with ”–help”.


author

Authored By Amit Agarwal

Amit Agarwal, Linux and Photography are my hobbies.Creative Commons Attribution 4.0 International License.

We notice you're using an adblocker. If you like our webite please keep us running by whitelisting this site in your ad blocker. We’re serving quality, related ads only. Thank you!

I've whitelisted your website.

Not now
This website uses cookies to ensure you get the best experience on our website. Learn more Got it