We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
There is a need to get EXIF data according to value of a variable, but it is not currently achievable:
a = "DateTimeOriginal" piexif.ExifIFD[a]
It fails!
a = "DateTimeOriginal" piexif.ExifIFD.get(a)
It also fails!
The text was updated successfully, but these errors were encountered:
here you can see the full list of available tags.
For your case however, you can do:
exif_dict = piexif.load("foo.jpg") datetime_original = exif_dict["Exif"][piexif.ExifIFD.DateTimeOriginal]
Sorry, something went wrong.
@step135 you can use getattr(piexif.ExifIFD, "DateTimeOriginal")
getattr(piexif.ExifIFD, "DateTimeOriginal")
No branches or pull requests
There is a need to get EXIF data according to value of a variable, but it is not currently achievable:
It fails!
It also fails!
The text was updated successfully, but these errors were encountered: