1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-15 21:55:24 +02:00
tldr/pages/common/viu.md

25 lines
611 B
Markdown
Raw Normal View History

2021-11-23 05:34:06 +04:00
# viu
> View images on the terminal.
2021-11-23 05:34:06 +04:00
> More information: <https://github.com/atanunq/viu>.
- Render an image or animated GIF:
`viu {{path/to/file}}`
- Render an image or GIF from the internet using `curl`:
`curl {{[-s|--silent]}} {{https://example.com/image.png}} | viu -`
2021-11-23 05:34:06 +04:00
- Render an image with a transparent background:
`viu {{[-t|--transparent]}} {{path/to/file}}`
2021-11-23 05:34:06 +04:00
- Render an image with a specific width and height in pixels:
`viu {{[-w|--width]}} {{width}} {{[-h|--height]}} {{height}} {{path/to/file}}`
2021-11-23 05:34:06 +04:00
- Render an image or GIF and display its file name:
`viu {{[-n|--name]}} {{path/to/file}}`