Two XMP Packets in one document

Started by wilfo, October 21, 2014, 11:02:35 AM

Previous topic - Next topic

wilfo

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

Phil Harvey

Hi Wilfried,

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

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

Phil Harvey

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
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

wilfo

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