Skip Menu |

This queue is for tickets about the Image-ExifTool CPAN distribution.

Report information
The Basics
Id: 70394
Status: rejected
Priority: 0/
Queue: Image-ExifTool

People
Owner: Nobody in particular
Requestors: stlman [...] poczta.fm
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



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
CC: Phil Harvey <phil [...] owl.phy.queensu.ca>
Subject: Re: [rt.cpan.org #70394] XMP handling a bit broken
Date: Sun, 21 Aug 2011 15:56:44 -0400
To: bug-Image-ExifTool [...] rt.cpan.org
From: Phil Harvey <phil [...] owl.phy.queensu.ca>
I do not think this is a problem with ExifTool, but rather a formatting problem in your XML: On 2011-08-21, at 9:31 AM, Lukasz Stelmach via RT wrote: Show quoted text
> 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>
ExifTool makes a mess of this because it is not valid XML. All "<", ">" and "&" symbols must be escaped using character entities "&gt;", "&lt;" and "&amp;" in XML values. - Phil