Extract IPTC-Keywords Longer than 64 Chars in Java

≯℡__Kan透↙ 提交于 2020-01-16 04:00:30

问题


I'm using Drews Metadata Extractor for Java to extract IPTC-keywords from a JPEG Image. Works good so far. I assigned the keywords using Adobe Bridge. Unfortunately, Bridge supports keywords longer than 64 chars but the metadata extractor library only reads the first 64 chars of the String. Are there any ideas of how to read the whole keyword? (max. 128 chars)

PS: It's not possible to shorten the Keywords.


回答1:


If you have a sample image I can test this with, I'll give it a shot. You can open your image in a hex editor too and see whether the full text is present. If the library is truncating it, I'd like to see if we can avoid that.

Please file an issue that includes a sample image.

EDIT I mention in this answer that Bridge is correctly truncating the keyword to 64-bytes for IPTC data, but it seems likely that the full string is available via XMP.



来源:https://stackoverflow.com/questions/38399216/extract-iptc-keywords-longer-than-64-chars-in-java

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!