Technology and General Blog

Did you know our mind interprets visuals much much more swiftly compared to text? Perfectly, Digital media is a single of the important features of laptop or computer programs now. Getting a Linux consumer, I check out to execute most of the functions via the terminal making use of instructions. The vast majority of the jobs in the terminal are textual content-based mostly I can read through, edit textual content information, but I experienced no concept how to display screen pictures in the terminal. Is it even probable to view illustrations or photos though working with the terminal? Very well, luckily, the reply is sure! Visuals can show up in the terminal applying commands.

There are a variety of GUI-based mostly apps in Linux distributions to view pictures, but many Linux consumers like to perform with the terminal. This guideline is going to point out couple of tactics to exhibit photos in the terminal. These strategies would be quite practical for those people who are browsing for CLI (Command Line Interface) primarily based apps to perspective pictures.  So, let’s get started:

How to display images in terminal as a result of FIM

The initially approach to perspective images in the terminal is FIM, an open up-resource, really customizable picture viewer application. FIM signifies Fbi IMproved, and Fbi is “frame buffer picture viewer” in Linux. FIM is light-weight when compared to quite a few GUI-centered applications and arrives with a variety of shortcut keys to manage photos. Popular file formats FIM supports are jpeg, png, gif, ppm, tiff, and xwd. To put in it, use the instructions talked about down below:

For Ubuntu and Debian centered distros, FIM can be installed using:

The syntax to screen graphic in terminal is:

Now, to display the impression in the terminal, use:

To screen all the pictures of the identical extension, use:

The keyboard shortcuts to management picture are stated below:

  • Impression Navigation : PageUp & PageDown or “Enter”
  • Zoom : +-
  • Autoscale: a
  • Fitting width and height: wh
  • Flip: f
  • Mirror: m
  • Rotate (clockwise) : r
  • Rotate (anti-clockwise) : R
  • To stop FIM, press the “Esc” or “q” important.

How to display photographs in terminal employing ImageMagick

Most Linux buyers are mindful of the “ImageMagic” utility. It is a lightweight software to manipulate pictures of hundreds of formats, which include jpeg, png, gif, pdf, svg, and so forth. It can even convert the photos from just one format to an additional.

But quite a few of us do not know that there is a command associated with this app called the “display” command. Making use of the “display” command, you can perspective the picture in the terminal. To install it, use the under-mentioned commands:

For Ubuntu/Debian centered distros:

$sudo apt put in ImageMagick

For CentOS 8, Purple Hat (RHEL), and Fedora:

$sudo dnf put in -y ImageMagick ImageMagick-devel

For OpenSUSE:

$sudo zipper install -y ImageMagick

To show an picture in terminal use:

And to shut the picture, press the “Esc” or “q” vital. To specify the measurement of the photographs, use the “-geometry” alternative with the “display” command:

$screen -geometry 600×400 impression1.jpg

To manipulate the dimension of the picture, use the “-resize” selection:

$screen -resize 800×500 image1.jpg

Or use “%” indication with “-resize” flag:

$display -resize 60% picture1.jpg

How to show photographs in terminal working with feh

“Feh” is a different light-weight graphic viewer software created to perspective pictures in the terminal. It not only displays visuals from your area push but also from the web by URLs. You can look through illustrations or photos in numerous varieties these kinds of as montages, slideshows, thumbnails, etcetera. To put in it on Linux, use the instructions outlined under:

For Ubuntu and Debian centered distros:

To set up it on Arch Linux:

To install it on FreeBSD and OpenBSD:

At the time the installation is done, you can perspective the impression employing the command offered beneath I am displaying “image1.jpg” from the “Downloads” directory:

To operate a slideshow, open the terminal in the listing containing images and execute:

To navigate images, use “left/right” arrow keys and zoom in and zoom out employing “up/down” keys. To perspective much more than 1 impression on the monitor, primarily in montage format, use the “-m” (montage) solution:

To open multiple images in numerous home windows, use:

To quit, simply press the “Esc” critical.

How to show photographs in terminal utilizing Terminology

Photos can also be viewed in a terminal emulator termed “Terminology.” This characteristic-rich terminal emulator not only shows pictures in the terminal but also plays videos in it. To install it on Ubuntu and Debian based distributions, use:

$sudo apt put in terminology

To install it on Arch Linux:

$sudo pacman -S terminology

To put in it on Fedora, use: 

$sudo dnf set up terminology

For OpenSUSE, execute:

$sudo zypper put in terminology

And to see to image, abide by the syntax:

For occasion:

To enjoy online video, use:

Terminology is 1 of the nicely-recognized terminal emulators and arrives with tons of attributes and customization choices.


Viewing electronic media such as visuals/animated gifs in the terminal can be substantially a lot more easy for Linux consumers who devote most of their time performing with the terminal. It can be handy in many approaches. We discussed 4 diverse approaches to display screen pictures in the terminal. But other utilities can assist display screen photographs in the terminal, these types of as w3m, viu, and eog (eye of gnome). The terminal is an powerful way to talk with your technique, and exhibiting electronic media in the terminal improves its features and can help the terminal end users do the job extra effectively.

Leave a Reply

Your email address will not be published. Required fields are marked *