Download IMG 20221022 WA0000 jpg
if __name__ == "__main__": main()
def get_image_properties(image_path): image = Image.open(image_path) exif_data = image._getexif() Download IMG 20221022 WA0000 jpg
return { 'image_size': image_size, 'image_width': image_width, 'image_height': image_height, 'exif_data': properties } Download IMG 20221022 WA0000 jpg if __name__ ==
def main(): image_path = 'Download IMG 20221022 WA0000 jpg.jpg' image_properties = get_image_properties(image_path) Download IMG 20221022 WA0000 jpg
image_size = os.path.getsize(image_path) image_width, image_height = image.size
import os from PIL import Image from PIL.ExifTags import TAGS