Download Img 20221022 | Wa0000 Jpg

return { 'image_size': image_size, 'image_width': image_width, 'image_height': image_height, 'exif_data': properties }

import os from PIL import Image from PIL.ExifTags import TAGS Download IMG 20221022 WA0000 jpg

Download IMG 20221022 WA0000 jpg

JPEG Image

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

def get_image_properties(image_path): image = Image.open(image_path) exif_data = image._getexif() Download IMG 20221022 WA0000 jpg

[Insert file size]