This is a quick mockup I copy and pasted together. I imagine this being super cool and useful.
Does something like this exist already?
You cant do so in a terminal, but you can do so in a tty using
Go to a virtualterminal(TTY) and enter
It should show your image
Maybe caca is what you want. For images:
Make sure your terminal window is big enough.
For example, here is how this image is displayed in
I sometimes used it for fun to watch videos as ASCII in mplayer :) Like this:
There's actually such a project named TermKit, if you'd like to test it - check out http://blog.easytech.com.ar/2011/05/21/playing-with-termkit-with-chrome/ but it's quite unfinished (since you seem to have a Mac, you should try the Mac-version since it's "the original")
So yes, it's an idea worth exploring, however - the switch between graphical and text-only mode must be quick since I don't always need the images viewed. Also - it needs to be fully compatible with e.g. Vim..
This does not exist;
However, you can call an image viewer from the commandline to see your pictures in a particular folder. So, going off of your mockup above showing you listing all .jpg pictures in the current folder, you can use Eye of GNOME (Ubuntu's default image viewer) from the commandline for something similar:
Note that the window which comes up will only show one image at a time, though you can use the provided arrow buttons to cycle between them.
Another alternative is terminology:
You can install it on ubuntu by adding Hannes Janetze e17 repository:
I wrote a tool to do this. I named mine Show Image In Terminal (
I droped it in my
My intent was to ssh into my house, and quickly view images without launching a display over X. Script scales to appropriate width/height for the terminal you are in. I used UTF8 characters to effectively double the vertical resolution of your terminal, which really helps clarity. YMMV.
Here are some solutions in
To install either, type
While the main purpose of
3. libsixel + mlterm/xterm
Then there is FIM which is an improved version of
You could also get creative and use the jupyter-qtconsole as your system console, configure it to show plots inline (
Thank you for your interest in this question.
Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.
Would you like to answer one of these unanswered questions instead?