10
4
Is there any way to display an image over SSH? There is not need for good quality, I just need an idea of what is in the images. Mostly these are icon files for websites and such. Sometimes I can just forward X over SSH and use display
but sometimes I can't. I don't mind working in a non-X tty for applications such as fbi
.
I have tried jp2a
but most of the images are in .png format and it is cumbersome to convert each one to check what is in them. Also, by using only the ASCII characters the display is very very limited. Perhaps if it could use arbitrary UTF-8 characters this could be better.
I have tried fbi
but it complains ioctl VT_GETSTATE: Invalid argument (not a linux console?)
even when I'm SSHing in through a non-graphical tty. I did try the -T 2
option which doesn't throw any errors but I don't see the image. I suspect that the image is being 'displayed' on tty2 of the server, which I have no way to see (I could not get to it with chvt 2
even though I have root access).
I have tried links
, w3c
, and other console browsers but the best that I've gotten out of them is to see the image file displayed as if it were run through cat
.
I have tried mplayer
's console output options but those only support video, as they are in fact video codecs.
I have tried zgv
however as a normal user it complains you must be the owner of the current console to run zgv
and as root it just hangs, no output.
It works fantastically well. But I still can't make sense of the images, lol. – Camilo Martin – 2014-07-11T03:02:16.293
In your terminal program, lower the font size to something like 1x1 before viewing the image, then resize the terminal program to max size. – LawrenceC – 2015-07-04T23:01:03.087
This is better than pretty much all the solutions I've read considering it's easy to install and works over ssh. – Sridhar Sarnobat – 2019-09-03T20:46:42.313
I never heard of it before, but it seems perfect. +1 – Hennes – 2013-01-25T12:22:47.207