2025-03-14 21:59:59 -06:00
|
|
|
# viu
|
|
|
|
|
|
|
|
|
|
> View images on the terminal.
|
|
|
|
|
> 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`:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`curl {{[-s|--silent]}} {{https://example.com/image.png}} | viu -`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Render an image with a transparent background:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`viu {{[-t|--transparent]}} {{path/to/file}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Render an image with a specific width and height in pixels:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`viu {{[-w|--width]}} {{width}} {{[-h|--height]}} {{height}} {{path/to/file}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Render an image or GIF and display its file name:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`viu {{[-n|--name]}} {{path/to/file}}`
|