# get a list of all *.jpg's in our sample dir
import glob
= 'sample-data/*.jpg'
path = glob.glob(path) images
exif_explorer
try parsing some exif data from Google Photo takeout
We will want to have a list of images to query the exif data
len(images)
2
See about reading/writing exif data to images
extract_exif
extract_exif (images)
open_image
open_image (image_path)
= extract_exif(images)
images_and_data assert open_image(images_and_data[0].image_path).make == "Google"
= open_image(images_and_data[0].image_path) test_image
= extract_exif(images)
images_and_data assert len(images_and_data) == 2
0].exif.get('datetime_original') images_and_data[
'2018:11:30 07:57:21'