HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

viu — View images on the terminal. More information: <https://github.com/atanunq/viu#command-line-options>

Submitted by: @import:tldr-pages··
0
Viewed 0 times
theterminalcommandimagesviuclimoreview

Problem

How to use the viu command: View images on the terminal. More information: <https://github.com/atanunq/viu#command-line-options>.

Solution

viu — View images on the terminal. More information: <https://github.com/atanunq/viu#command-line-options>.

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 -


Render an image with a transparent background:
viu {{[-t|--transparent]}} {{path/to/file}}


Render an image with a specific width and height in pixels:
viu {{[-w|--width]}} {{width}} {{[-h|--height]}} {{height}} {{path/to/file}}


Render an image or GIF and display its file name:
viu {{[-n|--name]}} {{path/to/file}}

Code Snippets

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 -

Render an image with a transparent background

viu {{[-t|--transparent]}} {{path/to/file}}

Render an image with a specific width and height in pixels

viu {{[-w|--width]}} {{width}} {{[-h|--height]}} {{height}} {{path/to/file}}

Render an image or GIF and display its file name

viu {{[-n|--name]}} {{path/to/file}}

Context

tldr-pages: common/viu

Revisions (0)

No revisions yet.