Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I display an image in the terminal?

Is there any sort of utility I can use to convert an image to ASCII and then print it in my terminal? I looked for one but couldn't seem to find any.

like image 597
user1447941 Avatar asked Sep 02 '12 02:09

user1447941


People also ask

How do I open an image in terminal?

To open a picture from terminal, where /path/to/file is the location on the computer your file is stored, with the actual name of the file at the end. Save this answer. To open any file via terminal, you have to locate the path of that file. Then type the name of the application which you want to open the file with.

How do I display an image in terminal Python?

Load and display image in Python and OpenCV OpenCV will be used to load a local image from the system while PIL will be used to display the image from the terminal. We have specified the color coding of the image that is RGB. This will open a new terminal window that will display the local image.

How do you display the contents of a file on the terminal?

Cat. The simplest way to view text files in Linux is the cat command. It displays the complete contents in the command line without using inputs to scroll through it. Here is an example of using the cat command to view the Linux version by displaying the contents of the /proc/version file.


1 Answers

Chafa

I like to use chafa.

chafa example.png

Screenshot

You can download Chafa from Chafa's website or from your favourite package manager, like APT:

sudo apt install chafa
like image 132
Flimm Avatar answered Oct 06 '22 03:10

Flimm