asciify

Crates.ioasciify
lib.rsasciify
version0.1.6
sourcesrc
created_at2020-08-25 02:45:10.244338
updated_at2020-09-19 00:28:17.891941
descriptionA rust library for converting images to a readable format on the command line
homepage
repositoryhttps://github.com/Hkattelu/Asciify
max_upload_size
id280358
size59,750
Himanshu Kattelu (Hkattelu)

documentation

README

github crates.io docs.rs

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);

Ascii chocobo

// Generating a string and resizing
AsciiBuilder::new_from_path(opt.input)
    .set_deep(true);
    .set_resize(Some(32, 32));
    .build();

Ascii chocobo after resizing

$ ./asciify ./test-images/SPECIAL(ChocoboA)900.png -c

Ascii chocobo with color

Commit count: 33

cargo fmt