Compare commits
No commits in common. "153e5f49eb706f3c83b89ecd8eb8e8c41ecfdac2" and "74446a332e0332cc1a7bf3f315b3faae62c7fedf" have entirely different histories.
153e5f49eb
...
74446a332e
7
ascii.py
7
ascii.py
|
@ -12,7 +12,7 @@ import numpy as np
|
||||||
import numpngw
|
import numpngw
|
||||||
|
|
||||||
ASCII_CHARS = "$@%#*+=-:. "
|
ASCII_CHARS = "$@%#*+=-:. "
|
||||||
HEADERS = {'User-Agent': 'Gimme ascii.'}
|
HEADERS = {'User-Agent': 'Gimme the ascii.'}
|
||||||
|
|
||||||
|
|
||||||
def scale_image(image, maxDim=100):
|
def scale_image(image, maxDim=100):
|
||||||
|
@ -221,7 +221,8 @@ if __name__=='__main__':
|
||||||
description="Converts an image file to ascii art.")
|
description="Converts an image file to ascii art.")
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"imagePath",
|
"imagePath",
|
||||||
help="The path to the image file. May be a local path or internet URL.")
|
help="The path to the image file. May be a local path or internet \
|
||||||
|
internet URL.")
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"-r",
|
"-r",
|
||||||
"--reverse",
|
"--reverse",
|
||||||
|
@ -247,7 +248,7 @@ if __name__=='__main__':
|
||||||
"--color",
|
"--color",
|
||||||
type=str,
|
type=str,
|
||||||
help="Colorizes the ascii matrix. Currently supported modes are 'irc' \
|
help="Colorizes the ascii matrix. Currently supported modes are 'irc' \
|
||||||
and 'ansi' for generating color codes compliant with those standards.")
|
and 'ansi'.")
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"--ansi",
|
"--ansi",
|
||||||
dest="color",
|
dest="color",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user