在Java中提取长度超过64个字符的IPTC关键字 [英] Extract IPTC-Keywords Longer than 64 Chars in Java

查看:135
本文介绍了在Java中提取长度超过64个字符的IPTC关键字的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 Drews Metadata Extractor for Java从JPEG图像中提取IPTC关键字.到目前为止效果很好. 我使用Adobe Bridge分配了关键字.不幸的是,Bridge支持的关键字长于64个字符,但是元数据提取器库仅读取String的前64个字符. 是否有关于如何阅读整个关键字的想法? (最多128个字符)

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:无法缩短关键字.

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

推荐答案

如果您有示例图像可以用来测试,我会给您一个机会.您也可以在十六进制编辑器中打开图像,然后查看是否存在全文.如果该库被截断,我想看看是否可以避免.

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.

编辑(我在此答案中提到),Bridge正确地将关键字截断为64-字节用于IPTC数据,但完整的字符串似乎可以通过XMP获得.

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.

这篇关于在Java中提取长度超过64个字符的IPTC关键字的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆