hMatoba / Piexif

Exif manipulation with pure python script.
MIT License
367 stars 81 forks source link

FocalLength #76

Closed annacesar closed 5 years ago

annacesar commented 5 years ago

I have tried to add the focal length (210 mm) to exif file using:

exif_dict["0th"][piexif.FocalLength] = (210,100)

but I got the error: AttributeError: module 'piexif' has no attribute 'FocalLength'

How can I solve the issue? Thanks

jdpiguet commented 5 years ago

May be you can use: piexif.ExifIFD.FocalLength