I have a quick Ubuntu tip for you today. You’re on the command line and have an image in the directory that you’re currently in. How can you easily view this image without loading Nautilus, browsing to the directory, and opening it from there? It turns out that the answer is very simple.
The default image viewer in Ubuntu is called Eye of Gnome. Using Eye of Gnome, you can quickly view the following images: ani, bmp, gif, ico, jpeg, pcx, png, pnm, ras, svg, tga, tiff, wbmp, xbm, and xpm.
To run Eye of Gnome from the command line, simply run “eog”. So, if you have a file called image.jpg in your current directory, you can simply run the following to view it:
Now you never again have to wonder what that image is as you’re browsing around in Terminal.
This tip will work for any distro running Gnome, such as Linux Mint.
Thanks! Just what I needed.
hi ! do you know any command or tools that show image in virtual console not in gnome-terminal……….
fbi, the Frame Buffer Image viewer, can display images using the kernel’s frame buffer; however, this the program only works in real consoles not virtual consoles. So, you cannot run this while logged in through xterm, gnome-terminal, ssh, screen, etc.
I have yet to find any solution to view images in a virtual terminal.
Hey, that’s easy
Now try this one: Press Ctrl-Alt-F2 (enter virtual terminal) and try viewing image from there
The problem with this is that there’s no X in there, so you’d need a more low-level tool.
The funny thing is that there is such tool for viewing video – mplayer. Amazingly, you can view video from virtual terminal (provided the kernel is booted with appropriate vga=??? option) just as well as you can from X, and noticeably faster on slow machines. But I don’t know of any program that does just the same thing with images. If you know the one, please do reply.
That would be a neat trick. I really don’t have much use for doing that, but I’ll see if I can find something.
Okay, looks like I found the answer. If interested, check out fbida project (http://linux.bytesex.org/fbida/). The fbi program from there can view images from virtual terminal, it’s easy to use and fun ))
Thanks, exactly what i was looking for some BASH programs
Cheers
Thanks, I was looking for that, and found it here.
I was looking for something to display just an image (in fact the part of russian keyboard layout) with no borders and fancy space around. I did not succeeded with eog, but “pqiv” is doing that and is much faster than eog.
That program is indeed fast, but I find it lacking for my uses. pqiv doesn’t allow me to zoom the image in or out, look at other images in the same directory, or much of anything really. I also found an annoying tendency for pqiv’s window to always open in or move to an odd screen on multi-screen setups.
For example, I’ll be working on screen one, but it will open on screen two. I’ll bring it to screen one, but as soon as I click anything, it snaps back to screen two. Frustrating is a nice word for that “feature.”
Yeah. Not for me, but I’m glad that it works for you. Hopefully others will find it useful as well.