ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: Maps on October 24, 2011, 03:44:25 PM

Title: [Solved] XMP-iptcCore:Keywords?
Post by: Maps on October 24, 2011, 03:44:25 PM
Hi,

I have a sample of pictures with metadata written by gthumbs. gthumbs uses both xmp and iptc, but in a somehow funny way. In particular, these pictures got the following (xmp/iptc) tags:

---- XMP-x ----
XMP Toolkit                     : XMP Core 4.4.0-Exiv2
---- XMP-dc ----
Description                     : Comment about the picture...
---- XMP-iptcCore ----
Keywords                        : tag1, tag2
---- IPTC ----
Caption-Abstract                : Comment about the picture...
Keywords                        : tag1, tag2
Urgency                         : 0 (reserved)


I'm trying to restore a proper xmp structure, with or without IPTC (doesn't really matter if it is present, but if it is, I rather like it to be correct).

Now, this said, I can't manage to simply remove the XMP-iptcCore keywords... I tried different things, some of which I expected not to work :

$ exiftool -overwrite_original -xmp:keywords+= pict1.jpg
Warning: No value to add or delete in XMP-acdsee:Keywords
Nothing to do.
$ exiftool -overwrite_original -iptccore:keywords+= pict1.jpg
Warning: Tag 'iptccore:Keywords' does not exist
Nothing to do.
$ exiftool -overwrite_original -xmp-iptccore:keywords+= pict1.jpg
Warning: Tag 'xmp-iptccore:Keywords' does not exist
Nothing to do.
$ exiftool -overwrite_original -Iptc4xmpCore:keywords+= pict1.jpg
Warning: Tag 'Iptc4xmpCore:Keywords' does not exist
Nothing to do.
$ exiftool -overwrite_original -xmp-Iptc4xmpCore:keywords+= pict1.jpg
Warning: Tag 'xmp-Iptc4xmpCore:Keywords' does not exist
Nothing to do.


Am I missing something obvious here, or is it gthumb messing everything up?
Maps
Title: Re: XMP iptcCore Tags
Post by: BogdanH on October 24, 2011, 04:15:01 PM
Hi,

As far I know, xmp equivalent for Iptc:Keywords is Xmp:Subject. I have no idea about Xmp-iptcCore:Keywords tag.. some custom tag perhaps... Phil will know more about that.

Bogdan
Title: Re: XMP iptcCore Tags
Post by: Maps on October 24, 2011, 05:37:22 PM
Hehe, this is actually part of the problem! I couldn't find iptccore:keywords in the list of XMP iptcCore tags (http://www.exiftool.org/TagNames/XMP.html#iptcCore)... However, I do have it in my files! I could wipe everything out with '-xmp:all= -iptc:all=', but as a matter of fact, I do want to keep them, but with the correct structure (i.e. xmp:dc-subject instead). My first post was partly misleading... Still, I have no idea how to 'find' this tag if I don't know the name of it...
Title: Re: XMP iptcCore Tags
Post by: Phil Harvey on October 24, 2011, 06:51:04 PM
As far as I know, Keywords is not a standard XMP-iptcCore tag.  You can't write or delete this individually because tags must be pre-defined to be able to do this.  However, you should be able to copy this to the standard XMP-dc:Subject tag and delete it by deleting the entire XMP-iptcCore group like this:

exiftool -xmp-iptccore:all= "-xmp:subject<xmp-iptccore:keywords" ...

If you want to write it individually, this is possible, but to do this requires creating a user-defined tag.

- Phil
Title: Re: XMP iptcCore Tags
Post by: Maps on October 24, 2011, 07:53:40 PM
Phil: thanks, this is great, and works perfectly!

After some digging, I finally understood that gthumb was using Exiv2 as a metadata engine. Don't know if the 'xmp-iptccore:keywords' is a mistake in Exiv2 or in the way gthumb uses it (probably the latter)...

Anyway, problem solved! Thanks again!