Is it possible to view images in a terminal?

18,947

Solution 1

Oh yes

enter image description here

If you prefer colour there's libcaca

Solution 2

The libcaca library comes with img2txt and cacaview tools for this. In color.

One can watch movies through it as well:

mplayer -really-quiet -vo caca ~/Movies/*
Share:
18,947

Related videos on Youtube

B. Marek
Author by

B. Marek

Updated on September 18, 2022

Comments

  • B. Marek
    B. Marek over 1 year

    I have ssh access to my web server. I have some image files there and I would like to see a preview of. Is there a tool that will help me? Is there a curses-based viewer that will approximate the picture?

  • skub
    skub over 12 years
    I'd +10 this if I could... LOL! Good answer!
  • Admin
    Admin over 12 years
    aview is awesome! Is there any particular difference between the formats .p[ngbp]m?
  • Tris - archived
    Tris - archived over 10 years
    all I can say is YES.
  • user1686
    user1686 over 10 years
    No, it wouldn't, because SSH does not have a framebuffer.
  • Rob
    Rob over 10 years
    Yeah. I know a lot more about what's going with my stuff than I did over a year ago.
  • user5249203
    user5249203 almost 10 years
    @user2284570: libcaca? (answer updated)