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

24 lines
501 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.

# viu
> 在终端上查看图像。
> 更多信息:<https://github.com/atanunq/viu>。
- 渲染图像或动画 GIF
`viu {{path/to/file}}`
- 使用 `curl` 从互联网渲染图像或 GIF
`curl -s {{https://example.com/image.png}} | viu -`
- 渲染带有透明背景的图像:
`viu -t {{path/to/file}}`
- 以特定的宽度和高度(像素)渲染图像:
`viu -w {{width}} -h {{height}} {{path/to/file}}`
- 渲染图像或 GIF 并显示其文件名:
`viu -n {{path/to/file}}`