ExifTool Forum

ExifTool => Newbies => Topic started by: Manufrommadrid on April 02, 2020, 04:33:47 AM

Title: How to copy data across iptc fields on the same file
Post by: Manufrommadrid on April 02, 2020, 04:33:47 AM
Hello everyone:

I would like to know how to achieve this:

I need to copy existing data from "Title" IPTC field to "Headline" IPTC field for the same file.
In other words, imagine I have a file with the following Title (iptc field) "Red flower", and the current headline iptc field is blank. What I want to do is to paste "Red Flower" on the headline iptc field.

I would also want to know if it is possible to do that for all the files inside a folder at the same time.

Thank you very much in advance!
Title: Re: How to copy data across iptc fields on the same file
Post by: Manufrommadrid on April 02, 2020, 04:52:26 AM
(https://i.ibb.co/sKsC38s/iptc.jpg)

I'm also posting this picture, so you can clearly see what I want to do ;)
Title: Re: How to copy data across iptc fields on the same file
Post by: Phil Harvey on April 02, 2020, 07:03:53 AM
Generally, the command would be:

exiftool "-headline<title" DIR

But I'm anticipating that you will run into FAQ number 3 (https://exiftool.org/faq.html#Q3).  If so, use your other software to write Headline then use this command to see where it should go:

exiftool -headline -G1 FILE

then use a command like this command to copy Title to the same location that your software uses (here I assume that Headline is in XMP-photoshop):

exiftool "-xmp-photoshop:headline<title" DIR

- Phil
Title: Re: How to copy data across iptc fields on the same file
Post by: Manufrommadrid on April 02, 2020, 07:46:38 AM
Worked like a charm!

Thank you so much Phil!