Author Topic: How to copy data across iptc fields on the same file  (Read 134 times)

Manufrommadrid

  • Newbie
  • *
  • Posts: 3
How to copy data across iptc fields on the same file
« 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!

Manufrommadrid

  • Newbie
  • *
  • Posts: 3
Re: How to copy data across iptc fields on the same file
« Reply #1 on: April 02, 2020, 04:52:26 AM »


I'm also posting this picture, so you can clearly see what I want to do ;)

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 17020
    • ExifTool Home Page
Re: How to copy data across iptc fields on the same file
« Reply #2 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.  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
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

Manufrommadrid

  • Newbie
  • *
  • Posts: 3
Re: How to copy data across iptc fields on the same file
« Reply #3 on: April 02, 2020, 07:46:38 AM »
Worked like a charm!

Thank you so much Phil!