-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
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
Getting IFD1 exif information #6777
Comments
I've added a commit to #6748. With that, from PIL import Image, ExifTags
im = Image.open("sa.jpg")
print(im.getexif().get_ifd(ExifTags.IFD.IFD1)) gives
|
I've added another commit to #6748. With that, from PIL import Image, ExifTags
im = Image.open("sa.jpg")
im.get_child_images()[0].save("thumbnail.jpg") gives Those two changes should resolve this. |
Hi, https://github.com/radarhere/Pillow/blob/main/src/PIL/Image.py#L1568 https://github.com/radarhere/Pillow/blob/main/src/PIL/Image.py#L1580 https://github.com/radarhere/Pillow/blob/main/src/PIL/Image.py#L1584 |
I've created #8611 to replace the constants. |
Follow-up to #6641
A test image could be the following:
https://www.sun.ac.za/english/test-site/EXIF/sa.jpg
Please find below a code sample that uses the piexif library to extract all available exif information.
I wasn't able to retrieve the same information using only Pillow. In particular, not having the offsets to IFD1 and the embedded thumbnail makes it impossible (for me) to retrieve the tags from IFD1 as well as the raw data for the embedded thumbnail.
The text was updated successfully, but these errors were encountered: