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
Not all exif tags being read with getexif #5988
Comments
Hi. I think this is a duplicate of #5894. See #5894 (comment) for a full explanation. |
Testing, I think that |
Thanks for the super fast response. I'm still not seeing all of the TAGS I would expect based on viewing the image in my default image viewer, in particular any of the GPS tags. Are those also separated somehow? How do I get everything possible? |
Well, I would say that GPS is also an IFD - https://www.awaresystems.be/imaging/tiff/tifftags/gpsifd.html, and that you should do print([TAGS[k] for k in image.getexif().get_ifd(0x8825)]) except that when I try that with your image, it is empty. If I run
What program is making you think that there is GPS data in this image? |
Interesting. We have an automated test suite that's been using this image as an example for months. One of the things the test checks is the presence (and value) of GPSLat/Long. The image normally lives on S3, but I downloaded it locally and reuploaded it here -- I wonder if that stripped the tag for some reason? 🤔 I notice that you use a different ifd tag for the GPSInfo -- is there a list of those tags somewhere in PIL such that I could loop through and accumulate all of the exif that's present? |
In my estimation, those are the important ones - EXIF and GPS. Pillow also supports Interop (0xA005) and Makernote (0x927C but only for Fujifilm and Nintendo). |
Perfect. Thanks a ton for the help! |
What did you do?
See code below. I opened an image and parsed the exif tags using
getexif()
What did you expect to happen?
I expected a complete set of exif tags to be presented and parsed.
What actually happened?
Some exif tags were parsed, but most were not.
What are your OS, Python and Pillow versions?
The code above outputs
for the image:
When I look at the image in the default ubuntu image viewer, I can see far more tags.
If I downgrade PIL to 8.0.0 and run the exact same code, I get:
This is a much more complete set of exif tags.
The text was updated successfully, but these errors were encountered: