Tell me more ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

This is a quick mockup i copy and pasted together. I imagine this being super cool and useful.

Does something like this exist already?

http://imgur.com/Z3DbS

share|improve this question

6 Answers

You cant do so in a terminal, but you can do so in a tty using fbi. You need a framebuffer to allow this to work

sudo apt-get install fbi

Go to a virtualterminal(TTY) and enter fbi <filname>

It should show your image

share|improve this answer

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..

share|improve this answer
I read about this project once before on Slashdot. Sounds intriguing! Too bad you need Google Chrome to use it...well, okay, it's not too bad if you use Chrome to begin with, but it seems like an unnecessary dependency. – WarriorIng64 Jan 22 '12 at 10:58
@WarriorIng64 Yeah, I it could work if you hack a bit with Qt's WebKit - but fortunately we have the chromium-browser in the repos, so that it's quite easy to install something Chromelike - I haven't really tried TermKit on my computer (w/ Chromium installed, but using Fx as main) since I'm quite dependent on Vim, and can't really use a terminal that won't give me my beloved text editor ;) – sakjur Jan 22 '12 at 11:01

This does not exist; gnome-terminal is only capable of diplaying text, at least as far as I know.

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:

eog *.jpg &

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.

share|improve this answer

I wrote a tool to do this. I named mine Show Image In Terminal ("shit"). It assumes you have a 256 color term and UTF8 support, and it's written in perl. I drop it in my ~/bin. It assumes you have Image::Magick, Term::Size, Getopt::Long and Time:HiRes, which should all be available in your distro's repositories, or CPAN. 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.

Sample shots here

Source code here

share|improve this answer

Maybe caca is what you want. For images:

sudo apt-get install caca-utils
cacaview /PATH/TO/image.jpg

Make sure your terminal window is big enough.

I sometimes used it for fun to watch videos as ASCII in mplayer :) Like this:

mplayer -vo caca /PATH/TO/video.mpg
share|improve this answer

Check out terminology, the console from Enlightenment. It's capable of what you are asking...see this video:

http://www.enlightenment.org/p.php?p=about/terminology

Not sure how much is capable outside of Enlightenment, but they have a ppa for it.

https://launchpad.net/~efl/+archive/trunk

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.