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 {_ @ 0 @@@@@@@@@@@@@@@@@@Q
8@@@@@@@ @@@@@@@@@@@@@@@@@
8@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@
|@@@@@@@@@@@@> @@@@@@@@@@@@Y
h@@@@@@@@@! @@@@@@@@@k
@@@@@@^ @@@@@@
To use this, all you have to do is run the file with the arguments you want. To run it, use the following flags:
python ascii_convert.py -i "FILE_PATH" -x X_SIZE -y Y_SIZE [-c CONTRAST] [-f]
or their longer forms
python ascii_convert.py --input "FILE_PATH" --resize_x X_SIZE --resize_y Y_SIZE [--contrast CONTRAST] [--flipped]
Flags between [brackets] are optional. If you can't figure something out, run the file with only the -h
or --help
flag.
All you'll need is to have Python 3 and the PIL library installed with pip install PIL
.
I've taken the long character set from http://paulbourke.net/dataformats/asciiart/