Viuwa

crate github license

Viuwa is a simple terminal ANSI image viewer trying to maintain bare-minimum compatibility with the wasm32-wasi target.

It uses almost exclusively ANSI escape codes to display images in the terminal.

Kitty, Sixel, and Iterm2 protocols are not supported, There are better tools such as viu or timg for cross-protocol terminal image viewing, please go and give them love.

Pull requests implementing different protocols are allowed as long as they don't break wasm32-wasi+ANSI compatibility.

Installation

bash cargo install viuwa

or for latest version

bash git clone https://github.com/WanderLanz/Viuwa.git && cd Viuwa && cargo install --path .

wasm file is also available in the releases section (with rayon feature disabled).

Features

Usage

Windowed image viewing (e.g. Vim)

bash viuwa [image]

Directly to command line (e.g. Catimg)

bash viuwa [image] --inline

For more advanced usage, see the help page

bash viuwa --help

Examples

inlined w/ nearest filter

cli-f1

tui w/ triangle filter

tui-f2

tui help

tui-help

Configuration

Environment variables

With inline flag:

Known Issues

License

This project is licensed under MIT or Apache-2.0.

Contributing

See CONTRIBUTING.md.

Dependencies