Download Img 20221022 Wa0000 Jpg ⟶

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

print('Image Properties:') print(f"File Size: {image_properties['image_size']}") print(f"Image Resolution: {image_properties['image_width']} x {image_properties['image_height']}") Download IMG 20221022 WA0000 jpg

import os from PIL import Image from PIL.ExifTags import TAGS image_height = image.size

properties = {}

Download IMG 20221022 WA0000 jpg

image_size = os.path.getsize(image_path) image_width, image_height = image.size Download IMG 20221022 WA0000 jpg