A small command-line application to view images from the terminal written in Rust. It uses lower half blocks (▄ or \u2584) to fit 2 pixels into a single cell by adjusting foreground and background colours accordingly.
Installation from source requires a local Rust environment.
```bash git clone https://github.com/atanunq/viu.git
cd viu/ cargo install --path .
viu img/smallimage.jpg
Or without cloning:
bash
cargo install viu
```
A precompiled binary can be downloaded from the release page.
There is an AUR package available for Arch Linux.
Ctrl-C was pressed to stop the GIF.
Examples:
viu img/giphy.gif
viu img/*
The shell will expand the wildcard above and viu will display all the images in the folder one after the other. For a more informative output when dealing with folders the flag -n could be used.
When viu
receives only one file and it is GIF, it will be displayed over and over until Ctrl-C is pressed. However, when couple of files are up for display (second example) the GIF will be displayed only once.
If no flags are supplied to viu it will try to get the size of the terminal where it was invoked. If it succeeds it will fit the image and preserve the aspect ratio. The aspect ratio will be changed only if both options -w and -h are used together.
```
USAGE:
viu [FLAGS] [OPTIONS]
FLAGS: -m, --mirror Display a mirror of the original image -n, --name Output the name of the file before displaying -v, --verbose Output what is going on
OPTIONS:
-h, --height
ARGS: