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
Missing XMP directory in JPG with XMP metadata #102
Comments
Finally had a minute to look at this. Hex editor shows there is definitely XML data in the file. |
Seems that the data in this file has a strange (invalid?) preamble:
Seems that the regular preamble has had a null-terminated I'll patch |
Great, thanks for fixing this! Would it be worth merging my PR (with tests now passing) to catch any regression of this issue? I confess I don't know half as much as I'd need to know if this preamble is valid or not. However this issue arises with seemingly all files we get from Getty and other image agencies, so I'm erring toward this being valid somehow (not that this is always a proof of metadata quality, mind you...). |
I noticed it wasn't actually a PR, but it is now, at #104 |
Interesting. If it's that common, then perhaps there's another standard I haven't come across. It works now, which is the main thing. |
Is there any chance to get this fix published as a patch release? We have a feature that depends on being able to extract XMP metadata from such files... On a separate note, I have been trying to add support for Getty's custom XMP namespace (which can be seen in that test file) to the library, still working on it but I'm hoping to open it as a PR at some point. Thanks again for the fix! |
I've further tested the latest master locally by building the JAR and loading it into our app -- all works great now! Is there anything I could do to help get a patch release out for this? |
Good to hear. I'll get a release out in the next day or two. Hopefully On Mon, 20 Apr 2015 17:31 Sébastien Cevey notifications@github.com wrote:
|
Amazing, thanks a lot! |
Just released 2.8.1 to Maven Central. Should be available within a couple of hours. |
We've released the updated library to production, works great. Thanks again! |
It seems like XMP metadata isn't reliably extracted even when ExifTool shows XMP being present.
For instance the following image:
Has XMP metadata according to exiftool:
However doing the following returns
null
:See failing test in my sc-missing-xmp branch, based on current master.
Is this because none of the tags present match the hardcoded tags in
XmpDirectory
? If so, is there another way to get hold of anXmpDirectory
instance so that I can extract custom tags usingXmpDirectory.getXmpProperties()
?The text was updated successfully, but these errors were encountered: