我可以在jpeg中编写多扩展xmp吗?

时间:2016-11-28 07:52:03

标签: image jpeg xmp

抱歉,英语不好。

我知道当xmp数据大小大于65K时,xmp数据被标准xmp和扩展xmp分割。 另外,我读了一个规范 (http://wwwimages.adobe.com/content/dam/Adobe/en/devnet/xmp/pdfs/XMPSpecificationPart3.pdf

我可以在多标签中编写多扩展数据吗?以及如何编写多扩展数据?

摘要质量保证)

  1. 每个XMP代码都有hasExtendedXMP属性?

  2. 如果extendedXMP Count为3,我如何在jpeg中编写app1帧 (extenedXMP是相同的标签)

  3. 实施例)

    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>
    

1 个答案:

答案 0 :(得分:0)

我发现jpeg只有一个'hasExtendedXMP'。如果jpeg具有多扩展xmp数据,则多扩展xmp被序列化。