-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Image.getexif()
errors on n04532106_1553.JPEG from ImageNet
#8957
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
Comments
Image.getexif()
error on n04532106_1553.JPEG from ImageNetImage.getexif()
errors on n04532106_1553.JPEG from ImageNet
Could you attach the image? |
I tried to figure out if I am allowed to share the image and am not sure. I think this says images can't be shared publicly. https://image-net.org/download.php |
Here is a code snippet to reproduce the issue from PIL import Image
im = Image.open('443876244-4cdf2ebc-88c4-4a61-b99e-f78d07c49bfe.JPEG')
im.getexif() It results in
|
I've created #8960 to resolve this. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This image file seems to have invalid utf-8 in xmp tags and
getexif
errors withThis is not technically a bug, but it may be better to print a warning instead of throwing an error. ImageNet is a popular dataset and this issue is going to be painful for its users.
The issue only happens with Pillow 11.2.1, because the previous versions do not have this UTF decoding step.
7d50816#diff-4805c79264fea07df59058db82ed74bb2f5c5023e212ac678536a534c56e5be2R1524
The text was updated successfully, but these errors were encountered: