News:

2023-08-10 - ExifTool version 12.65 released

Main Menu

Batch copy in exiftool

Started by Archive, May 12, 2010, 08:54:33 AM

Previous topic - Next topic

Archive

[Originally posted by bceugene on 2009-04-03 03:19:36-07]

Hello,

I'm a photographer and have an exiftool question. I'd be very grateful for any advice you can offer.
I'm just not very adept at command line programs and have tried and tried to do what I need to do, without success. I will pose it in a very simple sample scenario.

 
 
It has to do with batch copying of just the caption from a set of tiffs back to the corresponding dng originals.      

 
 

1) There are two folders in "my documents," one called "dng," one called "tif." They each have 100 files with same name prefix.      

 
 

2) dng folder files are called test001.dng through test100.dng

 
 
3) tif folder files are called test001.tif through test100.tif      

 
 

4) The need is to copy just the iptc captions (not keywords) from the tif to the dng. I know this is backwards, but this is what I need to do.    

 
 

This is posed using stand-in directories. In reality the files reside on an external drive with the drive letter g:    

 
 
Thanks again for any assistance you can offer. Much appreciated.      

 
 
Regards,
Brett

Archive

[Originally posted by exiftool on 2009-04-03 11:13:54-07]

Hi Brett,

The command would look something like this:

Code:
exiftool -tagsfromfile "g:/my documents/tif/%f.tif" -iptc:caption-abstract -iptc:by-line -ext dng "g:/my documents/dng"

The command will copy information to all DNG images in the
specified target directory from same-named ".tif" images in the
directory specified by the -tagsfromfile option.

Here I am copying the IPTC Caption-Abstract and By-line tags, but you
can do whatever tags you want.  Also, if you want to write the IPTC
tags to XMP, the syntax is like this:

Code:
"-xmp:creator<iptc:by-line"

Note that the red "+" sign is a line continuation indicator in this
forum, and is not part of the command.

- Phil