7 releases
0.1.6 | Sep 19, 2020 |
---|---|
0.1.5 | Sep 8, 2020 |
0.1.4 | Aug 26, 2020 |
#2003 in Text processing
50 downloads per month
21KB
173 lines
Asciify
A rust library for converting images to a readable format on the command line
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
AsciiBuilder::new_from_path(opt.input)
.set_deep(false);
.set_invert(false);
.to_std_out(true);
// Generating a string and resizing
AsciiBuilder::new_from_path(opt.input)
.set_deep(true);
.set_resize(Some(32, 32));
.build();
$ ./asciify ./test-images/SPECIAL(ChocoboA)900.png -c
Dependencies
~8–15MB
~162K SLoC