News:

2023-08-10 - ExifTool version 12.65 released

Main Menu

Copying metadata

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

Previous topic - Next topic

Archive

[Originally posted by rlebel on 2009-06-29 17:11:32-07]

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.

Archive

[Originally posted by exiftool on 2009-06-29 17:36:20-07]

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