Subject: | XMP handling a bit broken |
Date: | Sun, 21 Aug 2011 15:31:09 +0200 |
To: | bug-Image-ExifTool [...] rt.cpan.org |
From: | Lukasz Stelmach <stlman [...] poczta.fm> |
Hi.
The XMP meta-data I download for my picture from Creative Commons
(fill the form at http://creativecommons.org/choose/,
XMP is available after you submit it) contain <rdf:li /> element
(inside <dc:rights>) with xml:lang attribute set. After implanting
the data in a file (without any warnings) I get
Warning: [minor] Can't handle XMP attribute 'xml:lang' - 20110821-112304-DSC00001.JPG
0 image files updated
1 image files unchanged
when I try to set xmp:title and the title remains unset/unchanged.
The problem disappears if I remove xml:lang from dc:rights/rdf:Alt/rdf:li
before implanting XMP. However, exiftool adds dc:title/rdf:Alt/rdf:li
with xml:lang set
<dc:title>
<rdf:Alt>
<rdf:li xml:lang='x-default'>ATitle</rdf:li>
</rdf:Alt>
</dc:title>
and mangles the <dc:rights/> element badly. What once (before
setting xmp:title) was
<dc:rights>
<rdf:Alt>
<rdf:li>Ten utwór jest dostępny na <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/3.0/pl/">licencji
Creative Commons Uznanie autorstwa-Użycie niekomercyjne-Na tych samych warunkach 3.0 Polska</a>.</rdf:li>
</rdf:Alt>
</dc:rights>
becomes
<dc:rights>
<rdf:Alt>
<rdf:li rdf:parseType='Resource'>
<a>licencji Creative Commons Uznanie autorstwa-Użycie niekomercyjne-Na tych samych warunkach 3.0 Polska</a>
<a rdf:parseType='Resource'>
<href>http://creativecommons.org/licenses/by-nc-sa/3.0/pl/</href>
<rel>license</rel>
</a>
</rdf:li>
</rdf:Alt>
</dc:rights>
--
Było mi bardzo miło. Czwarta pospolita klęska, [...]
Show quoted text
>Łukasz< Już nie katolicka lecz złodziejska. (c)PP
----------------------------------------------------------------
Sprawdz ile mozesz zyskac na lokacie 12%!
http://linkint.pl/f2a17