This is a quick mockup I copy and pasted together. I imagine this being super cool and useful.
Does something like this exist already?

|
This is a quick mockup I copy and pasted together. I imagine this being super cool and useful. Does something like this exist already?
|
||||
|
I have written a small C++ tool to convert images to ANSI RGB control codes and Unicode block graphics characters for modern terminals supporting these features: https://github.com/stefanhaustein/TerminalImageViewer Installation:
Usage:
Edit: Changed links / instructions to the main repository; added usage. Examples: |
|||||||||||||||||||||
|
|
I made a very quick, simple one line shell function which solves the original question exactly as requested in the mockups. Note the screenshots below are actual images, not mockups.
Prerequisites are minimal: xterm and ImageMagick ( Limitations: Only 16 colors are used over all images shown. That means, an image might look better when viewed on its own. (See below). UPDATE While my above answer is still correct, I've created an even better shell script which is able to do an 'ls' of images directly into a terminal. There are all sorts of improvements I added to make the images look better (more colors, proper alpha, JPEG orientation, handling lots of images, compact tile layout,...). It's still a fairly small program, but I figured people might want to customize it, so I've put it up on github: https://github.com/hackerb9/lsix. |
||||
|
|
|
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. |
|||||||||||||
|
|
In addition to Joel's answer, Ranger terminal file manager with |
||||
|
|
|
Another tool is catimg, though there is no ready package for Ubuntu. It does not actually view the image but turn it into colored characters. |
|||
|
|
|
Another alternative is terminology:
You can install it on Ubuntu by adding the enlightenment-git repository:
Or in recent Ubuntu releases >= Vivid (15.04) it can be fetched from the official repositories.
To view an image, type |
|||||||||||||||||||||
|
|
You can't do so in a terminal window, but you can do so in a Linux console using
Go to a Linux console (using Control-Alt-F1) and enter It should show your image. |
|||||||||||||||||||||
|
1. w3mWhile the main purpose of Now, typing 2. Terminology
3. libsixel + mlterm/xtermInstall 4. FIMThen there is FIM which is an improved version of 5. jupyter-qtconsoleYou could also get creative and use the jupyter-qtconsole as your system console, configure it to show plots inline ( 6. feh
|
|||||
|
|
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:
|
|||||||||||||||||||||
|
|
Here are some solutions in To install either, type |
||||
|
|
|
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. |
|||||
|
Thank you for your interest in this question.
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?
feh! I know it's not in the terminal, but it does it's job. – dylnmc Oct 10 '15 at 6:55