Question: Apologies for the error. I am attempting to extract the Tages associated with my code to print a table: ''' Python Image Library ''' #

Apologies for the error. I am attempting to extract the Tages associated with my code to print a table:

''' Python Image Library '''

# Python Standard Library import os

# 3rd Party Modules from PIL import Image from prettytable import PrettyTable

imageFile = input("Folder to Process: ") try: if os.path.isdir(imageFile): images = ([os.path.join(imageFile, f)] for f in os.listdir(imageFile)) assignFiveTable = PrettyTable(["Image?", "File", "FileSize", "Ext", "Format", "Width", "Height", "Type"])

# read meta data in files imStatus = 'YES' imFormat = images.format imType = images.mode imSize = os.path.getsize(imageFile) imWidth = images.width imHeight = images.height imPath = os.path.abspath(images)

#Pretty Table assignFiveTable.add_row([imStatus, imPath, imSize, imFormat, imType, imSize, imWidth, imHeight])

except Exception as err: print("Exception: ", err) I am not sure what I am doing wrong.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!