← 返回命令列表

Linux command

tiv 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Display an image

tiv [image.png]

Display with specific width

tiv -w [80] [image.jpg]

Display with specific height

tiv -h [24] [image.png]

Display multiple images

tiv [image1.png] [image2.jpg] [image3.gif]

Display all images in directory

tiv [/path/to/images/]

Display with 256 colors

tiv -256 [image.png]

说明

tiv (Terminal Image Viewer) displays images directly in the terminal using ANSI escape codes and Unicode block characters. It converts images to a text representation that approximates the original using colored characters. The viewer supports various image formats through ImageMagick including PNG, JPEG, GIF, BMP, and more. It automatically scales images to fit the terminal dimensions while preserving aspect ratio. For best results, use a terminal with true color (24-bit) support. The 256-color fallback mode works on older terminals but produces lower quality output. Unicode block characters provide approximately 2x vertical resolution compared to standard characters.

参数

-w _width_
Set output width in characters.
-h _height_
Set output height in characters.
-256
Use 256-color mode instead of true color.
-x _num_
Image x-offset in pixels.
-y _num_
Image y-offset in pixels.
-0
Do not output newline after image.
--help
Display help information.
--version
Display version information.

FAQ

What is the tiv command used for?

tiv (Terminal Image Viewer) displays images directly in the terminal using ANSI escape codes and Unicode block characters. It converts images to a text representation that approximates the original using colored characters. The viewer supports various image formats through ImageMagick including PNG, JPEG, GIF, BMP, and more. It automatically scales images to fit the terminal dimensions while preserving aspect ratio. For best results, use a terminal with true color (24-bit) support. The 256-color fallback mode works on older terminals but produces lower quality output. Unicode block characters provide approximately 2x vertical resolution compared to standard characters.

How do I run a basic tiv example?

Run `tiv [image.png]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -w _width_ do in tiv?

Set output width in characters.