ExifTool Forum

ExifTool => Newbies => Topic started by: millan on September 15, 2013, 10:32:14 AM

Title: Copying keywords into cr2 files
Post by: 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?
Title: Re: Copying keywords into cr2 files
Post by: Phil Harvey on September 15, 2013, 11:36:31 AM
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 (https://exiftool.org/exiftool_pod.html) for more details about this feature.

- Phil
Title: Re: Copying keywords into cr2 files
Post by: khartzell001 on September 27, 2013, 04:56:21 PM
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.
Title: Re: Copying keywords into cr2 files
Post by: Phil Harvey on September 27, 2013, 07:47:03 PM
I think that reading FAQ number 12 (https://exiftool.org/faq.html#Q12) should get you going in the right direction.

- Phil