2021-11-23 01:34:06 +00:00
|
|
|
# viu
|
|
|
|
|
2023-07-16 18:23:40 +01:00
|
|
|
> View images on the terminal.
|
2021-11-23 01:34:06 +00: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 {{https://example.com/image.png}} | viu -`
|
|
|
|
|
|
|
|
- Render an image with a transparent background:
|
|
|
|
|
|
|
|
`viu -t {{path/to/file}}`
|
|
|
|
|
|
|
|
- Render an image with a specific width and height in pixels:
|
|
|
|
|
|
|
|
`viu -w {{width}} -h {{height}} {{path/to/file}}`
|
|
|
|
|
|
|
|
- Render an image or GIF and display its file name:
|
|
|
|
|
|
|
|
`viu -n {{path/to/file}}`
|