Python 3.8.1 (tags/v3.8.1:1b293b6, Dec 18 2019, 22:39:24) [MSC v.1916 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license()" for more information. >>> import os >>> os.getcwd() 'C:\\Users\\Priyanka_Varma\\AppData\\Local\\Programs\\Python\\Python38-32' >>> from PIL import ImageColor >>> ImageColor.getColor('red', 'RGBA') Traceback (most recent call last): File "<pyshell#3>", line 1, in <module> ImageColor.getColor('red', 'RGBA') AttributeError: module 'PIL.ImageColor' has no attribute 'getColor' >>> os.chdir("C:\\Users\\Priyanka_Varma\\Desktop\\Folder1") >>> os.getcwd() 'C:\\Users\\Priyanka_Varma\\Desktop\\Folder1' >>> from PIL import ImageColor >>> ImageColor.getcolor('red', 'RGBA') (255, 0, 0, 255) >>> ImageColor.getcolor('black','RGBA') (0, 0, 0, 255) >>> from PIL import Image >>> img = Image.open('imgage.jpeg') >>> img.size (1200, 900) >>> width, height = img.size >>> print("The Image Width is :: ", width, " and the height is : ", height) The Image Width is :: 1200 and the height is : 900 >>> img.filename 'imgage.jpeg' >>> img.format_Description Traceback (most recent call last): File "<pyshell#15>", line 1, in <module>