Asciify
A rust library for converting images to a readable format on the command line
You can import the library straight from this git repo by adding
asciify = { git = "https://github.com/hkattelu/Asciify", branch = "master" }
to your Cargo.toml
.
To use the code, simply construct a builder and set the properties desired. You can then choose to print the text straight to the console, or convert it to a string for later use:
// Printing to console with color
new
.set_deep;
.set_invert;
.to_std_out;
// Generating a string and resizing
new
.set_deep;
.set_resize;
.build;
$ ./asciify ./test-images/SPECIAL(ChocoboA)900.png -c