ExifTool Forum

ExifTool => Newbies => Topic started by: vernst on September 15, 2016, 04:26:55 AM

Title: Copy IPTC Tag to XMP Tag
Post by: vernst on September 15, 2016, 04:26:55 AM
Hello everybody,

I hope somebody can help us. We have a lot of pictures with data in a special meta tag (IPTC:keywords) but in the wrong metadata field. The problem is to copy the information of the meta tag from one tag to another tag but in the same image file. We dont want to change the filename and we have to batch the process. (because there are around 20 000 images in a directory)

So what we want is  to copy the information of IPTC Tag "keywords" to the XMP Tag xmp:subject of the same image file and in a defined directory. Is this possible?

Regards, Volkmar

Title: Re: Copy IPTC Tag to XMP Tag
Post by: Phil Harvey on September 15, 2016, 07:34:04 AM
Hi Volkmar,

Yes, this is trivial:

exiftool "-xmp:subject<iptc:keywords" DIR

- Phil
Title: Re: Copy IPTC Tag to XMP Tag
Post by: vernst on September 16, 2016, 04:20:16 AM
Hi Phil,

thank you very much!! It worked for around 98% of all files.   :) Only 600 files are unchanged because they have minor warnings. Some of them have duplicate XMP propertys, for example exif-DateTime or ResolutionUnit or another minor warnings. Is there a way to ignore this warnings and change anyway?

Thank you very much for you help,
Volkmar
Title: Re: Copy IPTC Tag to XMP Tag
Post by: Phil Harvey on September 16, 2016, 07:59:12 AM
Minor warnings may be ignored with the -m option.  For bigger problems the metadata must be rebuilt (see FAQ 20 (https://exiftool.org/faq.html#Q20)).

- Phil