Copy IPTC Tag to XMP Tag

Started by vernst, September 15, 2016, 04:26:55 AM

Previous topic - Next topic

vernst

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


Phil Harvey

Hi Volkmar,

Yes, this is trivial:

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

- 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 ($).

vernst

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

Phil Harvey

Minor warnings may be ignored with the -m option.  For bigger problems the metadata must be rebuilt (see FAQ 20).

- 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 ($).