PNG files and XMP metadata
Posted: Thu Feb 26, 2015 12:51 pm
XnViewMP writes XMP metadata in PNG files in the incorrect chunk, in the tEXt instead of iTXt, causing bad interaction with other applications which might lead to file corruption or loss of metadata.
EXAMPLE
I used two applications to write metadata to a PNG file: XnViewMP and Daminion.
The first example is from Daminion:
The second example is from XnViewMP Version 0.72 x64 (Dec 19 2014):
And this is how XnViewMP shows it:
XnViewMP also appears to be using an old version Adobe's XMPCore. The most recent is 2014.12. http://www.adobe.com/devnet/xmp.html
Thank you.
EXAMPLE
I used two applications to write metadata to a PNG file: XnViewMP and Daminion.
The first example is from Daminion:
Code: Select all
iTXtXML:com.adobe.xmp <?xpacket begin="" id="W5M0MpCehiHzreSzNTczkc9d"?>
<x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="XMP Core 5.4.0">
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about=""
xmlns:tiff="http://ns.adobe.com/tiff/1.0/"
xmlns:photoshop="http://ns.adobe.com/photoshop/1.0/"
xmlns:exif="http://ns.adobe.com/exif/1.0/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:xmp="http://ns.adobe.com/xap/1.0/"
tiff:Orientation="1"
photoshop:DateCreated="2015-02-23T02:09:39"
exif:DateTimeOriginal="2015-02-23T02:09:39"
xmp:MetadataDate="2015-02-26T12:45:18"
xmp:ModifyDate="2015-02-26T12:45:18">
<dc:description>
<rdf:Alt>
<rdf:li xml:lang="x-default">Daminion EXAMPLE DESCRIPTION</rdf:li>
</rdf:Alt>
</dc:description>
</rdf:Description>
</rdf:RDF>
</x:xmpmeta>
<?xpacket end="r"?>
Code: Select all
tEXtXML:com.adobe.xmp <?xpacket begin="" id="W5M0MpCehiHzreSzNTczkc9d"?>
<x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="XMP Core 5.1.2">
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about=""
xmlns:dc="http://purl.org/dc/elements/1.1/">
<dc:description>XnViewMP EXAMPLE DESCRIPTION</dc:description>
</rdf:Description>
</rdf:RDF>
</x:xmpmeta>
<?xpacket end="w"?>
XnViewMP also appears to be using an old version Adobe's XMPCore. The most recent is 2014.12. http://www.adobe.com/devnet/xmp.html
Thank you.