ExifTool Forum

ExifTool => Newbies => Topic started by: Xyzzy on March 02, 2015, 07:03:22 AM

Title: Just copy from XMP to IPTC
Post by: Xyzzy on March 02, 2015, 07:03:22 AM
Hi,

I have a problem with copying data from XMP (dc:Subject keywords) to IPTC (Keywords) in the same file:

exiftool.exe -IPTC:Keywords=XMP-dc:Subject  somefile.JPG

puts into IPTC literally the text "XMP-dc:Subject". The command:

exiftool.exe -XMP-dc:Subject  somefile.JPG

prints expected output (multiple keywords).

What am I doing wrong?

TIA
Title: Re: Just copy from XMP to IPTC
Post by: Phil Harvey on March 02, 2015, 07:45:14 AM
You must use the ExifTool copy operator (<), not the assignment operator (=).

I make this mistake sometimes myself.

Also note that you will have to put quotes around the argument because "<" is a special character in most shells.

- Phil
Title: Re: Just copy from XMP to IPTC
Post by: Xyzzy on March 03, 2015, 03:51:51 AM
Thanks for both tips  :D