Pixterm in Termux – Display Images in Terminal

Pixterm is a lightweight terminal tool that lets you display images directly inside the terminal using ANSI and Unicode characters. It supports popular image formats such as PNG, JPEG, GIF, BMP, TIFF, and WebP, allowing you to preview images from local files or URLs without using a graphical image viewer.

Here’s what you can do with Pixterm in Termux:

  • Display images directly in the terminal.
  • View PNG, JPEG, GIF, BMP, TIFF, and WebP images.
  • Open images from local files or URLs.
  • Resize images to fit the terminal.
  • Use different dithering modes.
  • Preview images without a graphical interface.

Install Pixterm in Termux

Below are the simple commands to install Pixterm in Termux. Copy and run each command one by one to install the tool.

Update Termux packages.

pkg update && pkg upgrade -y

Install Git and Go.

pkg install git golang -y

Clone the Pixterm repository.

git clone https://github.com/eliukblau/pixterm.git

Move into the project directory.

cd pixterm

Install Pixterm.

go install ./cmd/pixterm

Copy the binary to the Termux binary directory.

cp ~/go/bin/pixterm $PREFIX/bin/

Pixterm is now installed and ready to use.

Use Pixterm in Termux

After installing Pixterm, grant Termux permission to access your device storage.

termux-setup-storage

Move to your internal storage.

cd /sdcard

Open your image folder.

cd Pictures

Display an image.

pixterm image.png

Display an image from a URL.

pixterm https://example.com/image.png

Use fit scaling.

pixterm -s 2 image.png

Use character dithering.

pixterm -d 2 image.png

Remove the background color.

pixterm -nobg image.png

Show the installed version.

pixterm -version

Display the help menu.

pixterm -help

Replace image.png with the name or path of your image file.

End Note

Pixterm is a simple and fun tool that lets you view images in the terminal. It is easy to install, easy to use, and a great way to display images from the command line using just a few commands.

SHARE THIS POST: