Linux command
catimg 命令
文本
Copy it and replace filenames, paths, or keywords as needed.
命令示例
Display image in terminal
catimg [image.png]
Set custom width
catimg -w [80] [image.jpg]
Double resolution
catimg -r 2 [image.png]
Disable 24-bit color
catimg -t [image.gif]
说明
catimg renders images directly in the terminal using Unicode block characters and ANSI color codes. It supports JPEG, PNG, and GIF formats, with animated GIF playback via configurable loop counts. The tool requires no external dependencies and works over SSH connections, making it useful for previewing images on remote servers or in minimal environments without a graphical display. Image resolution can be adjusted with width, height, and resolution multiplier options to balance detail against terminal size.
参数
- -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)
FAQ
What is the catimg command used for?
catimg renders images directly in the terminal using Unicode block characters and ANSI color codes. It supports JPEG, PNG, and GIF formats, with animated GIF playback via configurable loop counts. The tool requires no external dependencies and works over SSH connections, making it useful for previewing images on remote servers or in minimal environments without a graphical display. Image resolution can be adjusted with width, height, and resolution multiplier options to balance detail against terminal size.
How do I run a basic catimg example?
Run `catimg [image.png]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -w _width_ do in catimg?
Display width (default: terminal width)