【发布时间】:2016-11-28 07:52:03
【问题描述】:
对不起,英语不好。
我知道当 xmp 数据大小大于 65K 时,xmp 数据被标准 xmp 和扩展 xmp 分割。 另外,我阅读了一个规范 (http://wwwimages.adobe.com/content/dam/Adobe/en/devnet/xmp/pdfs/XMPSpecificationPart3.pdf)
我可以在多标签中写入多扩展数据吗?以及如何编写多扩展数据?
质量检查摘要)
每个 XMP 标记都有 hasExtendedXMP 属性吗?
如果 extendedXMP 计数为 3,我如何在 jpeg 中编写 app1 帧 (extendedXMP 是同一个标签)
示例)
1) 第一个 APP1 标记
<?xpacket begin="?" id="W5M0MpCehiHzreSzNTczkc9d"?>
<x:xmpmeta xmlns:x="adobe:ns:meta/">
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about=""
xmlns:GDepth="http://ns.google.com/photos/1.0/depthmap/"
xmlns:xmpNote="http://ns.adobe.com/xmp/note/"
GDepth:Mime="image/jpeg"
**xmpNote:HasExtendedXMP="md5(1)"**/>
</rdf:Description>
<rdf:Description rdf:about=""
xmlns:SOF="http://stackoverflow.com"
xmlns:xmpNote="http://ns.adobe.com/xmp/note/"
**xmpNote:HasExtendedXMP="md5(2)"**/>
<SOF:text>test</SOF:text>
</rdf:Description>
</<rdf:RDF>
</x:xmpmeta>
<?xpacket end="w"?>
2) 第二个 App1 标记(扩展偏移量:0)
<x:xmpmeta xmlns:x="adobe:ns:meta/">
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about=""
xmlns:GDepth="http://ns.google.com/photos/1.0/depthmap/"
xmlns:xmpNote="http://ns.adobe.com/xmp/note/"
GDepth:Title="test.jpeg">
</rdf:Description>
</<rdf:RDF>
</x:xmpmeta>
3) 第三个 APP1 标记(扩展偏移量:0?1?)
<x:xmpmeta xmlns:x="adobe:ns:meta/">
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about=""
xmlns:SOF="http://stackoverflow.com"
xmlns:xmpNote="http://ns.adobe.com/xmp/note/">
<SOF:text2>test</SOF:text2>
</rdf:Description>
</<rdf:RDF>
</x:xmpmeta>
4) 第四个 APP1 标记(扩展偏移量:1?2?)
<x:xmpmeta xmlns:x="adobe:ns:meta/">
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about=""
xmlns:SOF="http://stackoverflow.com"
xmlns:xmpNote="http://ns.adobe.com/xmp/note/">
<SOF:text3>test</SOF:text3>
</rdf:Description>
</<rdf:RDF>
</x:xmpmeta>
【问题讨论】:
-
hasExtendedXMP 表示此图像包含扩展 XMP。至于扩展的XMP是如何序列化的,我已经回答了一个类似的问题here