apparently malformed metadata
GIMP version: 2.10.4
Operating System: Fedora 27
Package: [flatpak? Installer from gimp.org? If another installer, tell us where from]
flatpack installed from comand line
Description of the bug
Metadata written by GIMP is not read by metadata tools like Exiftool or Photo Mechanic, but is readable in GIMP itself.
In a hex editor, the first few lines of an XCF file saved with metadata written by GIMP's metadata editor look like this (like normal xml, to my non-coder eye):
gimp xcf v011ÄñBêBê§gimp-image-metadataD<?xml version='1.0' encoding='UTF-8'?> <metadata> <tag name="Exif.GPSInfo.GPSAltitude">0/10</tag> <tag name="Exif.GPSInfo.GPSLatitude">0/1 0/1 0/1</tag> <tag name="Exif.GPSInfo.GPSLongitude">0/1 0/1 0/1</tag> <tag name="Exif.Image.BitsPerSample">8 8 8</tag> <tag name="Exif.Image.ImageLength">2048</tag> <tag name="Exif.Image.ImageWidth">1152</tag> <tag name="Exif.Image.ResolutionUnit">2</tag> <tag name="Exif.Image.XResolution">72/1</tag> <tag name="Exif.Image.YResolution">72/1</tag> <tag name="Xmp.dc.creator">type="Seq" author</tag> <tag name="Xmp.dc.description">lang="x-default" this is the caption/description</tag> <tag name="Xmp.dc.rights">lang="x-default" copyright</tag> <tag name="Xmp.dc.subject">type="Bag" keyword go here, keywordzzzz</tag> <tag name="Xmp.dc.title">lang="x-default" doc title</tag> <tag name="Xmp.iptc.CiAdrCity">creator city</tag> <tag name="Xmp.iptc.CiAdrCtry">creator country</tag> <tag name="Xmp.iptc.CiAdrExtadr">(creator) address</tag> <tag name="Xmp.iptc.CiAdrPcode">creator post code</tag> <tag name="Xmp.iptc.CiAdrRegion">creator state</tag> <tag name="Xmp.iptc.CiEmailWork">creator email</tag> <tag name="Xmp.iptc.CiTelWork">creator phone</tag> <tag name="Xmp.iptc.CiUrlWork">creator website</tag> <tag name="Xmp.iptc.CountryCode">countrry code</tag> <tag name="Xmp.iptc.CreatorContactInfo/Iptc4xmpCore:CiAdrCity">creator city</tag> <tag name="Xmp.iptc.CreatorContactInfo/Iptc4xmpCore:CiAdrCtry">creator country</tag> <tag name="Xmp.iptc.CreatorContactInfo/Iptc4xmpCore:CiAdrPcode">creator post code</tag> <tag name="Xmp.iptc.CreatorContactInfo/Iptc4xmpCore:CiAdrRegion">creator state</tag> <tag name="Xmp.iptc.IntellectualGenre">int genre</tag> <tag name="Xmp.iptc.L
Here is the top of a file with only XMP metadata (no Exif and no IIM) that is readable in other programs:
ˇÿˇ‡JFIFHHˇ·#http://ns.adobe.com/xap/1.0/<x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="XMP Core 5.6.0"> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> <rdf:Description rdf:about="" xmlns:aux="http://ns.adobe.com/exif/1.0/aux/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xmp="http://ns.adobe.com/xap/1.0/" xmlns:photoshop="http://ns.adobe.com/photoshop/1.0/" xmlns:Iptc4xmpCore="http://iptc.org/std/Iptc4xmpCore/1.0/xmlns/" xmlns:xmpRights="http://ns.adobe.com/xap/1.0/rights/" xmlns:tiff="http://ns.adobe.com/tiff/1.0/" xmlns:onone="http://www.ononesoftware.com/vcb/1.0/" aux:Lens="Samsung Galaxy S7 Rear Camera" xmp:MetadataDate="2018-07-13T17:15:57" xmp:Label="" xmp:Rating="0" photoshop:Headline="headline" photoshop:Source="source" photoshop:Credit="creditline" photoshop:City="city" photoshop:State="state" photoshop:Country="country" photoshop:Instructions="spec instructions" photoshop:TransmissionReference="job id with edit in on1" photoshop:AuthorsPosition="job title" photoshop:CaptionWriter="desc writer" Iptc4xmpCore:Location="sublocation" Iptc4xmpCore:Copyright="copyright" Iptc4xmpCore:Caption="description here edit in on1" Iptc4xmpCore:IntellectualGenre="intellectual genre" xmpRights:WebStatement="copyright url" tiff:Orientation="1" onone:UserFlag="0"> <dc:title> <rdf:Alt> <rdf:li xml:lang="x-default">title object name</rdf:li> </rdf:Alt> </dc:title> <dc:description> <rdf:Alt> <rdf:li xml:lang="x-default">description here edit in on1</rdf:li> </rdf:Alt> </dc:description> <dc:rights>
Reproduction
Is the bug reproducible? [Always / Randomly / Happened only once ]
Reproduction steps:
- Write metadata in GIMP, save file
- Open file in GIMP, read metadata in GIMP's editor dialog. Metadata appears OK.
- Open file in other program, such as with "exiftool -a -G1 filename" Metadata doesnt' appear.
Note that Exiftool supports XCF, read-only, in all four relevant data blocks - ICC, IIM, XMP, and Exif, at least according to Exiftool docs.
…
Expected result:
Actual result: as above
Additional information
If you have a backtrace for a crash or a warning, paste it here.