ExifTool Forum

General => Metadata => Topic started by: wilfo on October 21, 2014, 11:02:35 AM

Title: Two XMP Packets in one document
Post by: wilfo on October 21, 2014, 11:02:35 AM
I am working with Photoshop (PSD) files. Some of them include more than 1 packet of XMP- data; maybe AdobeBridge simply appends additional XMP-Info instead of updating the existing info.
Extracting the XMP by exiftool -b -xmp file will return the "latest" one which is O.K. for me.
But i am not able to get specific versions of special tags. For instance retrieving all 'ColorMode' - entries by
exiftool -a -S -G -ColorMode file returns:
[Photoshop] ColorMode : CMYK
[XMP] ColorMode: CMYK
[XMP] ColorMode: RGB

and without -a i get
[XMP] ColorMode RGB
which is the deprecated one.
Will there be any way to only acces the latest one?
Many, many thanks for this great tool!
Wilfried
Title: Re: Two XMP Packets in one document
Post by: Phil Harvey on October 21, 2014, 11:23:01 AM
Hi Wilfried,

Could you send me a sample so I can take a look?  (philharvey66 at gmail.com)

- Phil
Title: Re: Two XMP Packets in one document
Post by: Phil Harvey on October 22, 2014, 07:55:02 AM
Hi Wilfred,

Interesting. The second XMP is embedded in the TIFF information of the PSD.  This is not the normal location for this.  I recommend just ignoring the non-standard XMP by adding -use MWG to your command.  This option will cause EXIF, IPTC and XMP in non-standard locations to be ignored.

- Phil
Title: Re: Two XMP Packets in one document
Post by: wilfo on October 22, 2014, 09:08:34 AM
Hi Phil,
thats exactly what i needed, and will help in many other situations, too.
I guessed that there is a solution for this, but overlooked it, as often.
Thank you
Wilfried