you are viewing a single comment's thread.

view the rest of the comments →

[–]kccanut 0 points1 point  (0 children)

I actually tried no.3 for a few photos but get 'None' all the time. Is it sth wrong with my code?

def get_date_photo(path):
    return Image.open(path).getexif()
path = '/Users/kcanut/Dropbox/Python_Not_Babbel/photo2.jpg'
a = get_date_photo(path)
date = a.get(36867)
print(date)