Author Topic: Newbie question: Copy from one field to another...  (Read 6893 times)

mjremijan

  • Newbie
  • *
  • Posts: 4
Newbie question: Copy from one field to another...
« on: October 21, 2011, 10:13:48 AM »
This image organization software I purchased a few years ago exports my photo descriptions in the "XP Comment" field.  What I want to do with exiftool is grab the contents of this "XP Comment" field and create/overwrite the "Description" field with the same value.  Since I've never used exiftool before, can a experienced user give me the command line commands to do this?  Seems like it should be pretty simple.  Windows or Linux command line will work fine.

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 14438
    • ExifTool Home Page
Re: Newbie question: Copy from one field to another...
« Reply #1 on: October 21, 2011, 10:52:48 AM »
You will find lots of examples here

But basically your command will look something like this:

exiftool "-Description<xpcomment" FILE

where FILE is the name of one or more image files and/or directories containing images.

The next problem is to determine which description tag you want to write.  The command above will write XMP:Description.  See FAQ number 3 for some tips on determining the proper tag to write.

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

mjremijan

  • Newbie
  • *
  • Posts: 4
Re: Newbie question: Copy from one field to another...
« Reply #2 on: October 21, 2011, 11:11:27 AM »
The tag I want to write is the tag which comes up as "Description" when I simply execute `exiftool FILE.jpg`

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 14438
    • ExifTool Home Page
Re: Newbie question: Copy from one field to another...
« Reply #3 on: October 21, 2011, 11:38:30 AM »
It is likely this is the right one, but you could extract the tag with the -G1 option to be sure (as per FAQ 3).

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

Alan Clifford

  • ExifTool Freak
  • *****
  • Posts: 384
    • A selection of Alan Clifford's photographs
Re: Newbie question: Copy from one field to another...
« Reply #4 on: October 21, 2011, 11:49:50 AM »
mjremijan, will you just be using exiftool to view your description or will you be wanting to use another application to see the description?

Alan

mjremijan

  • Newbie
  • *
  • Posts: 4
Re: Newbie question: Copy from one field to another...
« Reply #5 on: October 21, 2011, 03:41:35 PM »
I performed a test executing `exiftool "-description<xpcomment" "MVC_005S(rev 0).jpg"` and this worked great.  Thanks!

mjremijan

  • Newbie
  • *
  • Posts: 4
Re: Newbie question: Copy from one field to another...
« Reply #6 on: October 21, 2011, 03:45:18 PM »
mjremijan, will you just be using exiftool to view your description or will you be wanting to use another application to see the description?

Alan

What I will want to do is export my images the write a simple script to loop through the images and execute the exiftool command to copy from one tag to the other.  Then I'll import them into Lightroom and I'll have all the data in the correct fields for Lightroom to see. I'll have to do this for thousands of images so the idea of copying and pasting descriptions one image at a time was not an option  :)