- It takes in path to an image and returns an ascii version of the image which can then be printed and copy-pasted
- Pass in the path to image file as parameter to
convert()
function - Optionally tweak the
width
andthreshold value
(Default value for both variables is100
) to get a nicer ascii version of the image. -
>>> print(convert("path/to/the/image"))
>>> print(convert("path/to/the/image", width=50, threshold=200))
>>> print(convert("sample.png", width=60, threshold=150))
- pillow