From d4dc9eb4dcffd8045aa6bb5d943f4745a5ff6a52 Mon Sep 17 00:00:00 2001 From: DoubleFL3X <77819144+DoubleFL3X@users.noreply.github.com> Date: Sat, 23 Jan 2021 11:22:31 +0100 Subject: [PATCH] Update ascii_convert.py is not a valid pathname to an image. (Solved) --- ascii/ascii_convert.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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