diff --git a/ascii/ascii_convert.py b/ascii/ascii_convert.py index ffdf0161..d0c9070c 100644 --- a/ascii/ascii_convert.py +++ b/ascii/ascii_convert.py @@ -1,4 +1,4 @@ -import PIL +from PIL import Image # ascii characters used to build the output text ASCII_CHARS = ["@", "#", "S", "%", "?", "*", "+", ";", ":", ",", "."] @@ -26,7 +26,7 @@ def main(new_width=100): # attempt to open image from user-input path = input("Enter a valid pathname to an image:\n") try: - image = PIL.Image.open(path) + image = Image.open(path) except: print(path, " is not a valid pathname to an image.") return