if image_properties['exif_data']: print('Exif Data:') for tag, value in image_properties['exif_data'].items(): print(f"{tag}: {value}")
def main(): image_path = 'Download IMG 20221022 WA0000 jpg.jpg' image_properties = get_image_properties(image_path) Download IMG 20221022 WA0000 jpg
JPEG Image
image_size = os.path.getsize(image_path) image_width, image_height = image.size image_height = image.size