ansipix
A rust library for converting images to ANSI strings to print in a terminal
Usage
Add as dependency
Add the following to your Cargo.toml
= "0.1.1"
Get an ANSI string
use PathBuf;
let img = of_image;
Refer to the docs for more information about the parameters.
Specify a different filter type
ansipix uses the image crate for opening and resizing the image. The of_image function uses FilterType::Nearest for resizing. To specify a different one, add the image crate to your dependencies and use of_image_with_filter:
use PathBuf;
use FilterType;
let img = of_image_with_filter;
Print Image to the Terminal
println!;