Copying IPTC Keywords from first batch of files to other

Started by amitinddr, March 05, 2014, 10:18:07 AM

Previous topic - Next topic

amitinddr

Hi Phil
A question again. I have a set of couple thousand images with different IPTC keywords added to it. Now what I want to do is copy the IPTC Keywords from this directory and add them to same number of files with same file names in other directory. Is there a script that can help me here.

I want to do this because the files with IPTC keywords have a lower resolution and I want the IPTC to be added to the high resolution files as well.

Thanks well in advance.

Amit

Phil Harvey

Hi Amit,

You don't need a script.  This command should do the job:

exiftool -tagsfromfile SOURCEDIR/%f.%e -keywords DESTDIR

Things start to get a bit more complicated if you also want to process sub-directories, but this is do-able too (however I'll need more details about the directory structure to provide an example).

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).