Feh is a light-weight command-line image viewer for Linux
The default image viewer in most Linux distros is a fine option for many users, but if you want a distraction free alternative, Feh is a good option.
Feh's interface is as barebones as it gets as it does not have any toolbars or buttons but is a command line interface application; because of that, it is very light on resources and still easy enough to use even for users who shy away from using the command line whenever possible.
So, how do you use Feh?Â There are 2 ways to do so: open a terminal in a folder that contains images, type "feh" and hit enter. The image viewer should open and display the first image of that folder. You can also right-click on images in the Files app (or other file managers) and select open with Feh.
The Slideshow mode of the viewer opens by default which means that you can view all images of the folder by using the right and left arrow keys, by left-clicking with the mouse, or using the scroll wheel. If you just want to open a single image you may type "feh filename.extension" instead to do so.
Like most CLI apps, Feh has a ton of keyboard shortcuts for a nearly mouse-free usage. For example, use feh -t to view the folder's gallery in thumbnail view and click on any thumbnail to view the larger version.
There are 6 viewing modes that the program supports: Slideshow (default), Montage, Index, Thumbnail, Multiwindow and List.
- Montage mode displays the images in a sequence.
- Index mode displays the thumbnail and some of the imageâ€™s properties.
- Multi window opens each image in its own window.
- List mode displays the properties of the images in the folder in this order: Format, Width, Height, Pixels, Size, Alpha and Filename.
I mentioned how you can open the slideshow and thumbnail. For the other modes, use the command feh followed by a space and the first letter of the mode, e.g., feh -m. The only exception is the multiwindow mode which uses feh -w as -m is already mapped to Montage.
Right-click on an image to access the context menu. Feh is not an image editor but a viewer application; don't expect too many options.
You can rotate the picture and save it or set the image as your wallpaper. Feh supports some viewing options such as the ability to sort the list by the name of the file or directory, last modified, or even set it to random view. The application also has a built-in EXIF viewer that you can access from the Image Info menu. It will display the properties of the picture in a similar menu.
Feh has a few options that you can enable including auto-zoom, freeze window size or fullscreen. The only other editing options that Feh supports are the blur and sharpen tools. Hold the Control key and click with the mouse button and drag left to blur the photo or right to sharpen it. This can be useful if you want a background with a frosted glass look.
Feh supports common image formats such as JPG, PNG, BMP, GIF (non animated), etc. Iâ€™d advise going through the manual for more details about the keyboard shortcuts in the program. Nearly every command is customizable.
It may take some time to getting used to starting the image viewer from the command line (or right-click menu) and some users may dislike that from the get-go and select an image viewer with a proper interface instead for their image viewing needs on Linux. Check out our review of Nomacs if that is your cup of tea.
Linux users who spend the time getting used to Feh may find it suitable for many image viewing tasks.
Now You: which image viewer do you use and why?
I use qView on my KDE Neon computer https://interversehq.com/qview/ Why? It’s fast and barebones, stylish even. It shows pictures, nothing else. You click on a picture and WHOA, the picture is showing. It’s black magic I tell ya. Didn’t need gwenview or digiKam or any other bloated behemoth that’s made for something else than showing pictures entirely. Yes, those are organizers bla blaaa.. My picture organizer program is called Dolphin, it has a nifty little top-secret function called folders. My favourite place to store my pictures is in a folder called “Pictures”; inside that one I have more folders called Pictures from my camera, vacation, and so on.. I’m weird and crazeeee that way, I know. So yeah, live a little, give qView a shot and see if you like your pictures showing instantly. You might be pleasantly surprised. Oh and it’s cross-platform as well.
I like your style, Bobo. That Dolphin photo management suite is world class. ;)
Thanks for the recommendation about qView. Looks promising; I’m gonna check it out.
Feh is okay. I do miss Kuickshow though. In current host distro they didn’t bother compiling the older library support for the distribution so it is currently omitted. It was fast and did a lot of basic needs which are missing in Feh. However, Feh has some interesting features too. It, combined with gpicview, comes close to Kuickshow but still miss some single image functionality only in the single binary of Kuickshow. Gwenview is usually used for larger collections.
Will take a look at qview from @Bobo. Seems to be well documented. Thanks. :)
Interesting tool, I wonder if there is something similar that can perform just a bit more than that, like removing EXIF data or even color correction, white balance, etc. with a single command from the command line. Anyone?
I thought I rememberd an article about such a tool: https://www.ghacks.net/2019/08/08/pingo-is-a-fast-image-optimizer-for-the-web/
I’m using Viewnior, when I went Linux I tried a bunch of viewers and it was the one most similar to FastStone MaxView in operation, just simple, fast and with enough options. Also Nomacs if I need a quick edit, resize, “save as” etc.
Feh is not lightweight, it depends on libraries which makes it between 15-20mb (IIRC).