#682791 gimp: XMP metadata parser breakage: End of element <exif:Flash> not expected in this context

Package:
gimp
Source:
gimp
Description:
GNU Image Manipulation Program
Submitter:
Date:
2013-11-16 12:54:48 UTC
Severity:
normal
#682791#5
Date:
2012-07-25 18:17:46 UTC
From:
To:
Hello,

gimp seems to be unable to parse basic XMP tags:
-------------------
# Take out of camera jpeg. - Correct behavior, no XMP is present
ametzler@argenau:~/IMAGES/gimp-bug$ LC_ALL=C gimp P1030069.JPG
While parsing XMP metadata:
Error: No XMP packet found
# Add XMP-iptcCore:Location
ametzler@argenau:~/IMAGES/gimp-bug$ cp P1030069.JPG P1030069-XMPLocation.jpeg
ametzler@argenau:~/IMAGES/gimp-bug$ exiftool  -overwrite_original_in_place -XMP-iptcCore:Location="Desktop" P1030069-XMPLocation.jpeg
    1 image files updated
ametzler@argenau:~/IMAGES/gimp-bug$ LC_ALL=C gimp P1030069-XMPLocation.jpeg
While parsing XMP metadata:
Error on line 49 char 1: End of element <exif:Flash> not expected in this context

Metadata parasite seems to be corrupt
# Lets make another try, using exiv2 instead of exiftool
ametzler@argenau:~/IMAGES/gimp-bug$ cp P1030069.JPG P1030069-xmp_set_with_exiv2.JPG
ametzler@argenau:~/IMAGES/gimp-bug$ exiv2 mo -M 'set Xmp.iptc.Location XmpText Desktop' P1030069-xmp_set_with_exiv2.JPG
ametzler@argenau:~/IMAGES/gimp-bug$ LC_ALL=C gimp P1030069-xmp_set_with_exiv2.JPG
While parsing XMP metadata:
Error on line 49 char 1: End of element <exif:Flash> not expected in this context

Metadata parasite seems to be corrupt
-------------------

Camera is a Panasonic Lumix G2, exiftool/exiv2 are listed version below.

cu andreas