Display Images in Your Linux Terminal with catimg

Опубликовано: 03 Апрель 2026
на канале: LinuxHowTo
320
6

Want to display images directly in your Linux terminal? In this video, we’ll introduce you to catimg, a handy tool that lets you render images in your terminal. We’ll cover installation, basic usage, and some useful options to customize your image display. Let’s dive into how you can bring your terminal to life with images!

Learn:
✅ Install catimg (Debian/Ubuntu)

sudo apt update
sudo apt install catimg

🎨 Basic Usage

catimg image.png

🔧 Options
1. -r — Rendering Resolution

Only accepts 1 or 2:
-r 1 → low resolution
-r 2 → high resolution

catimg -r 2 image.jpg

2. -t — Disable True Color (24-bit)
Forces catimg to use 256-color escape codes instead of full 24-bit color. Useful on terminals that don’t support true color or when you want more compatibility.

catimg -t photo.png

3. -H — Maximum Height
Sets the max number of rows the image can occupy.

catimg -H 20 image.png

4. -w — Maximum Width
Sets the max number of columns the image can occupy.

catimg -w 60 image.png

⚠️ Important Note
-w and -H cannot be used at the same time. catimg will show:
[ERROR] '-w' and '-H' can't be used at the same time

💡 Example Combining Options

catimg -r 2 -t -w 80 image.png

✅ Why Use catimg?
Convenience: Display images directly in your terminal without opening a separate viewer.
Customization: Adjust resolution, color mode, and size to fit your needs.
Compatibility: Works with both true color and 256-color terminals.

✅ Pro Tips:
Experiment with Options: Try different combinations to find the best settings for your terminal.
Use with Scripts: Integrate catimg into your scripts for visual feedback.
Check Terminal Support: Ensure your terminal supports the features you want to use.

Hit subscribe for more Linux tips and like if this helped.
Let us know: What image will you display first with catimg?

You can find the Tutorial files and sample images to test at this GitLab link: https://gitlab.com/hatem-badawi/linux....

👉 Watch now and start displaying images in your terminal!

#LinuxTips #catimg #TerminalImages #ProductivityHacks

(Short, clear, and packed with practical knowledge!)