[Ilugc] [TIP] image viewing on command line

  • From: anandsaha@xxxxxxxxx (Anand Saha)
  • Date: Sat Apr 14 22:11:14 2007

I came across this gem of a tool to view images when you are in
command line mode. and if you are a cli person, this is a blessing.

the tool is fbi. 'apt-get install fbi' will install it on a debian based
system.

to use fbi, you need to pass the 'vga=' param to kernel to specify
resolution and depth for framebuffer. i use 'vga=0x315' for 800x600
res. and 24 bit depth. (edit your lilo.conf or menu.lst)

now once you reboot (if you added the vga option), you can invoke
fbi from command line with the image name as an argument, to
view the image. however it can do more than that. man fbi.

my original itch was to be able to view images while using lynx. now, once
fbi installed, and when you are in lynx interface, go to options and do
the following two changes:
1. Set X-Display to 'fbi' (type in fbi)
2. Set 'Show image' to 'as links'

Save it. (unfortunately the above two options do not get written to lynx
conf file. you need to set it for evey session with lynx)

Now lynx will start showing the images as links. navigate to the image
link and press right arrow. you will be able to see the image - all in
command line.

cheers,
saha
--

Other related posts: