-
Notifications
You must be signed in to change notification settings - Fork 70
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
ErrUnparseableValue error when reading in a JPEG file taken with a Sony digital camera #80
Comments
Hi @matti777 I believe I have hit the same issue with all images produced by my Sony NEX 3N camera. With some debugging I was able to identify that it was the The error is coming from here and is due to the fact that there is no registered decoder for this tag so one cannot be looked up here A trivial solution is to simply skip tags with this name in the loop in the ifd builder's AddTagsFromExisting method. You can
to that loop. This did the trick for me, but is just a hack rather than a real solution. As for the real solution there are two options that I can think of:
My intuition is that the latter is preferable. I would also prefer if the library's errors were more detailed so that you know what is the name of the problematic tag from the error message. However, this is probably worth opening a separate issue for. I hope all of this helps! |
I just opened a PR where I try to fix this issue. |
Actually, a third solution (also a hack) would be to add support for removing a given tag from the tags-index. When the enumerator tries to parse a tag whose ID is unknown, it'll just skip. Just copy-and-paste the Add() method as |
@georgethebeatle Posted comments to the PR. |
Im getting an ErrUnparseableValue error when reading the EXIF of a JPEG image taken with a Sony digital camera. Is that expected, what is the workaround? I would rather not toss away the existing EXIF, instead just be able to skip any unrecognized tags.
Image included as attachment; I am using the below code to read it:
The text was updated successfully, but these errors were encountered: