8 releases
0.2.1 | Jun 26, 2022 |
---|---|
0.2.0 | Jun 22, 2022 |
0.1.5 | Jun 18, 2022 |
#486 in Text processing
27 downloads per month
2MB
338 lines
symbolize!
This crate allows you to convert bitmap images into l33t text art! Also available as binary.
Preview
Usage as a crate
All needed information is available on docs.rs
Usage as binary
> cargo install symbolize
> symbolize --help
symbolize! 0.2.0
rzru <rzzzzru@gmail.com>
converts bitmap images into text art
USAGE:
symbolize [OPTIONS] --palette <PALETTE> <PATH>
ARGS:
<PATH> Path to the original picture
OPTIONS:
-c, --colorize Flag that shows should output be colorized for a terminal or not. Not
recommended to use it with anything but terminals with rgb support
-f, --filter <FILTER> Filter type. One of: nearest, triangle, catmull_rom, gaussian,
lanczos3. More about differences:
https://docs.rs/image/latest/image/imageops/enum.FilterType.html
[default: nearest]
-h, --help Print help information
-p, --palette <PALETTE> Defines symbols that will be used to fill the picture (in priority
order)
--scale <SCALE> Defines scale of symbolized picture relatively to the original
[default: 1]
-V, --version Print version information
> symbolize rustacean-flat-happy.png --palette=" @#$" --scale=0.05
@@ @@@@ @@
@@ @@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@
@@ @@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@
@@ @@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@ @@@@
@@@@ @@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@
@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@
@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@ @@@@@@@@@@@@@@@@@@&& @@@@&&&& @@@@@@@@@@@@@@ @@
@@@@@@@@@@@@@@@@@@@@@@&& @@@@ @@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@ @@@@ @@@@@@@@@@@@@@@@@@
@@@@@@##@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@####@@@@@@
@@@@## ####@@@@@@@@@@@@@@ @@@@@@@@@@#### ##@@@@
@@ ## ###################### ## @@
@@ @@
@@
License
Dependencies
~20MB
~260K SLoC