-
Notifications
You must be signed in to change notification settings - Fork 18
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
Crash when trying to get exif image data #92
Comments
Can I take this image to dataset for tests, e.g. what copyright does it have? |
Of course, use it as you want. It is just a simple photo of nothing personal or copyright protected made by me with a camera application applying no additional copyright restrictions. |
Signed-off-by: bigcat88 <[email protected]>
As Pillow do not have all tag id's for this image, you can use: exif = im.getexif()
if exif:
exif = exif._get_merged_dict() # noqa
for k, v in exif.items():
if isinstance(v, bytes) and len(v) > 8:
print(f"{TAGS[k]} : size {len(v)} bytes")
else:
print(TAGS.get(k, "XXX"), ":", v) Can't promise that release will be in this week with fix, but in two weeks I will try to publish it, when will have what to fix more. |
Thank you very much for the tip and for the fix! I will try this asap. Patiently waiting for the new release! |
Signed-off-by: bigcat88 <[email protected]>
The error was bigger than I thought at first.
|
It's great to see, that the bug was fixed. Thank you very much for your work! I guess, we can now close this issue?... |
Describe the bug
When trying to apply the getexif() method to HEIF images made with my phone (stock Xiaomi), I get the error described below. As an example I've attached one of the problematic images: image.zip (sorry for using the zip format, uploading .heic files is not allowed).
Steps/Code to Reproduce
Expected Results
Exif presents: True | Exif presents: False
Actual Results
Test machine 1:
Test machine 2:
Versions
The text was updated successfully, but these errors were encountered: