Copying keywords into cr2 files

Started by millan, September 15, 2013, 10:32:14 AM

Previous topic - Next topic

millan

Hi, as an Exiftool newbie and I am fighting with Exiftool commands in order to copy metadata (e. g. keywords) from xmp file into cr2 file. I would prefer doing it in a batch - for all files in particular directory. Could you please help?

Phil Harvey

The command would look like this:

exiftool -tagsfromfile %d%f.xmp -xmp:all -ext cr2 DIR

This command will copy all writable XMP tags from all XMP files in directory DIR to the same-named CR2 files in the same directory.  To copy selected tags instead, substitute -xmp:all with the tags you want coped (ie. -xmp:subject -xmp:title ...).

See the -tagsFromFile section of the application documentation for more details about this feature.

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

khartzell001

Quote from: millan on September 15, 2013, 10:32:14 AM
Hi, as an Exiftool newbie and I am fighting with Exiftool commands in order to copy metadata (e. g. keywords) from xmp file into cr2 file. I would prefer doing it in a batch - for all files in particular directory. Could you please help?

I am trying to do something similar, but I would like to extract keywords from multiple JPEG files into a single .txt file. It would be even better if I could extract the keywords to Microsoft excel, but I can't tell if this program can do that.

Phil Harvey

I think that reading FAQ number 12 should get you going in the right direction.

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