Files
tldr/pages.zh/common/catimg.md

21 lines
455 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# catimg
> 在终端中打印图像。
> 另请参见:`pixterm``chafa`。
> 更多信息:<https://github.com/posva/catimg>。
- 将 JPEG、PNG 或 GIF 打印到终端:
`catimg {{path/to/file}}`
- 将图像的 [r]esolution 加倍:
`catimg -r 2 {{path/to/file}}`
- 禁用 24 位颜色以获得更好的 [t]erminal 支持:
`catimg -t {{path/to/file}}`
- 指定自定义 [w]idth 或 [H]eight
`catimg {{-w|-H}} {{40}} {{path/to/file}}`