Download Img 20221022 Wa0000 Jpg -

def get_image_properties(image_path): image = Image.open(image_path) exif_data = image._getexif()

JPEG Image

if exif_data: for tag, value in exif_data.items(): tag_name = TAGS.get(tag, tag) properties[tag_name] = value Download IMG 20221022 WA0000 jpg

def main(): image_path = 'Download IMG 20221022 WA0000 jpg.jpg' image_properties = get_image_properties(image_path) def get_image_properties(image_path): image = Image

image_size = os.path.getsize(image_path) image_width, image_height = image.size value in exif_data.items(): tag_name = TAGS.get(tag

[Insert file size]

if image_properties['exif_data']: print('Exif Data:') for tag, value in image_properties['exif_data'].items(): print(f"{tag}: {value}")