Posted on 2009-06-29 17:11:32-07 by rlebel
Copying metadata
I am dumb exiftool newbie, and not much of Linex guy either. But I thought given your example even I could do this. I have a bunch of jpg files that have geotagging added (IPTC: city, state/province and country, plus GPS:latitude and longitude), and I have identically named CR2 files that I want to geotag. Based on your example in the copy metadata thread (exiftool -tagsfromfile SRCDIR/%f.tif DSTDIR -ext jpg), I put the jpg and cr2 files in a directory test and did: exiftool -tagsfromfile test/%f.jpg test -ext cr2 That indeed created new cr2 files but it does not appear that the new cr2 files have any different tags from the old ones; at least, the IPTC and GPS tags have not been modified/added. Some help? Thanks! P.S. I know that I could also specify exactly what tags I wanted copied, but I figured I would start with brute force and then refine it.
Direct Responses: 11083 | Write a response
Posted on 2009-06-29 17:36:20-07 by exiftool in response to 11082
Re: Copying metadata
Hi,

This should work. Try adding the -v2 option -- you'll get a lot of output, but you should be able to see exactly the new tags that are being written to the CR2 image. Something must have changed because you say the new CR2's were created. (If nothing changed, exiftool won't create new CR2's using this command.)

I tried your exact command here and it transferred a whole bunch of stuff, including the IPTC and GPS tags from the JPG to the CR2.

I suggest that the first refinement could be to specify: "exiftool -tagsfromfile test/%f.jpg -iptc:all -gps:all ..." to copy just IPTC and GPS tags.

- Phil
Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.