[cc-devel] How to XMP-tag an image with a CC licence?

Matt Lee mattl at creativecommons.org
Tue Mar 24 17:49:13 EDT 2015


Hey Andrew,

Thanks for helping out with this part of the puzzle. For those
following along, this work is part of The List app, or rather, some of
the server side processing components.

I generated a license using https://creativecommons.org/choose/ and
chose XMP as my output, I got this:

http://paste.debian.net/plain/163046

<?xpacket begin='' id=''?>
<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:xapRights='http://ns.adobe.com/xap/1.0/rights/'>
      <xapRights:Marked>True</xapRights:Marked>
    </rdf:Description>
    <rdf:Description rdf:about=''
    xmlns:xapRights='http://ns.adobe.com/xap/1.0/rights/'
    >
      <xapRights:UsageTerms>
<rdf:Alt>
 <rdf:li xml:lang='x-default' >This work is licensed under a <a
rel="license"
href="http://creativecommons.org/licenses/by/4.0/">Creative
Commons Attribution 4.0 International License</a>.</rdf:li>
 <rdf:li xml:lang='en_US' >This work is licensed under a <a
rel="license"
href="http://creativecommons.org/licenses/by/4.0/">Creative
Commons Attribution 4.0 International License</a>.</rdf:li>
 <rdf:li xml:lang='en' >This work is licensed under a <a
rel="license"
href="http://creativecommons.org/licenses/by/4.0/">Creative
Commons Attribution 4.0 International License</a>.</rdf:li>
 </rdf:Alt>
      </xapRights:UsageTerms>
    </rdf:Description>
    <rdf:Description rdf:about=''
    xmlns:dc='http://purl.org/dc/elements/1.1/'>
      <dc:title>
<rdf:Alt>
 <rdf:li xml:lang='x-default'>Photo of a cat</rdf:li>
 <rdf:li xml:lang='en_US'>Photo of a cat</rdf:li>
</rdf:Alt>
      </dc:title>
    </rdf:Description>
    <rdf:Description rdf:about=''
      xmlns:cc='http://creativecommons.org/ns#'>
      <cc:license rdf:resource='http://creativecommons.org/licenses/by/4.0/'/>
    </rdf:Description>
    <rdf:Description rdf:about=''
      xmlns:cc='http://creativecommons.org/ns#'>
      <cc:attributionName>Matt Lee</cc:attributionName>
    </rdf:Description>

  </rdf:RDF>
</x:xmpmeta>
<?xpacket end='r'?>


More information about the cc-devel mailing list