Display image over SSH, no X
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Unforgiving Himalayas Looping
--
Chapters
00:00 Display Image Over Ssh, No X
01:14 Answer 1 Score 2
01:55 Accepted Answer Score 11
02:11 Answer 3 Score 1
02:36 Answer 4 Score 1
02:50 Thank you
--
Full question
https://superuser.com/questions/541590/d...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#commandline #images
#avk47
ACCEPTED ANSWER
Score 11
Try 'img2txt'. For Ubuntu it can be found in 'caca-utils' packet.
'caca-utils' seems to be also available as rpm.
ANSWER 2
Score 2
Oneway to display an 'image' with a text screen is via aalib.
That will use ASCII chars to render an image, and if you have a large enough text area (sort of resolution) then you can recognise what is being shown.
You would run the conversion to ASCII-art/movies on the remote side of the SSH link.
Link: aalib demo on youtube.
Also, by using only the ASCII characters the display is very very limited.
Aye. Which means that unless you have a large terminal to play with you will barely recognisabnle images. If you can use a large terminal on a high density display (with sharp letters even when you use a tiny font) then it is useable.
ANSWER 3
Score 1
not as fast as ascii (but full quality) view concept:
localComp$ ssh remoteCompIp 'cat image.jpg | ssh localCompIp fim -i'
fim works for pdf files too, and for wav/mp3/mp4 files
fim -i
can be replaced with
mplayer -vo fbdev2 -cache 16384 -
.
ANSWER 4
Score 1
Since this question ranks well in search, here are several options that you'll likely have available in your package manager:
- catimg
- tiv
- timg
- chafa
- asciiart