docs.rs failed to build viuer-0.11.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
viuer-0.9.2
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.
The default printing method is through lower half blocks (▄ or \u2585).
However some custom graphics protocols are supported. They result in full
resolution images being displayed in specific environments:
For a demo of the library's usage and example screenshots, see
viu.
Usage
With the default features, only image::DynamicImage can be printed:
use ;
let conf = Config ;
let img = ImageRgba8;
print.expect;
And with the print-file feature, viuer can work with files, too:
use ;
let conf = Config ;
// Display `img.jpg` with dimensions 80×25 in terminal cells.
// The image resolution will be 80×50 because each cell contains two pixels.
print_from_file.expect;
Docs
Find all the configuration options in the full documentation.