viuer
Display images in the terminal with ease.
viuer
is a Rust library that makes it easy to show images in the terminal. It has a straightforward
interface and is configured through a single struct.
Examples
# in Cargo.toml, under [dependencies]
= "0.1"
// in src/main.rs
use ;
Or if you have a DynamicImage, you can use it directly:
// ..Config setup
let img = ImageRgba8;
print.expect;
Docs
Check the full documentation for examples and all the configuration options.
Future work
Currently, viuer
only supports printing with lower half blocks (▄ or \u2584). That way two pixels
are fit into a single terminal cell by modifying its foreground and background colors. There are more
modern ways to display images nowadays, depending on the terminal emulator. kitty
and iterm2 have their own protocols, to name a few.
Ideally, this crate can be a foundation, on top of which support for different display methods can be implemented.