LinuxCommandLibrary

catimg

TLDR

Display image in terminal

$ catimg [image.png]
copy
Set custom width
$ catimg -w [80] [image.jpg]
copy
Double resolution
$ catimg -r 2 [image.png]
copy
Disable 24-bit color
$ catimg -t [image.gif]
copy

SYNOPSIS

catimg [options] image

DESCRIPTION

catimg renders images in the terminal using Unicode characters. Supports JPEG, PNG, and GIF formats. Works over SSH connections with no dependencies.

PARAMETERS

-w width

Display width (default: terminal width)
-r factor
Resolution multiplier (e.g., 2 for double)
-t
Disable 24-bit color (use 256 colors)
-H height
Set display height
-l loops
GIF animation loops (0 for infinite)

INSTALLATION

$ git clone https://github.com/posva/catimg.git
cd catimg
cmake .
sudo make install
copy

SIMILAR TOOLS

chafa

Advanced terminal graphics
timg
Terminal image/video viewer
tiv
Terminal image viewer
imcat
Image to terminal

CAVEATS

Uses Unicode block characters for rendering. Quality depends on terminal font and color support. Works best in terminals with 24-bit color support.

SEE ALSO

chafa(1), timg(1)

Copied to clipboard