Are you sure that the GPS coordinates are embedded in the CR2 and not in a xmp sidecar file by checking the CR2 file directly with exiftool? There are almost no programs that will directly edit a CR2 so unless you added the GPS data directly to the CR2 file with exiftool or similar program, the GPS coordinates won't be in the CR2 but in the XMP sidecar.
Check by running
exiftool -G1 -a -s -gps* file.cr2Quote from: FreddyFremad on April 14, 2021, 05:21:24 PM
I am trying to copy all relevant tags from an updated .CR2 original to a .jpg version using this command:
R:\exiftool.exe -m -q -q -overwrite_original_in_place -fast -x ExifImageWidth -x ExifImageHeight -tagsFromFile "P:\long path-IMG_7367.CR2" "P:\another long path-IMG_7367.JPG"
This command should copy the GPS coordinates if they exist in the CR2, as well as any other tags except the two you excluded, though the location may change depending upon the tags (see second paragraph under the
-TAG[+-^]=[VALUE] option (https://exiftool.org/exiftool_pod.html#TAG---VALUE)) . But you might try running it without the
-m (
-ignoreMinorErrors) option (https://exiftool.org/exiftool_pod.html#m--ignoreMinorErrors) and
-q (quiet) option (https://exiftool.org/exiftool_pod.html#q--quiet) to see if you're suppressing a minor error that is preventing data from being copied.
QuotePreviously I also deleted all tags from the jpg before copying from the CR2. I skipped that step - would that be a problem?
No, it shouldn't be a problem. The command you list will overwrite any existing tags during the copy.
QuoteI noticed a post complaining about the speed on windows 10 - and a possible "dispute" with the windows security.
I also find it somewhat slow. My R: is a RAM-drive and I have excluded entire drive from windows security.
I also use R: as a temp-drive for the tag-listings to be read by my program (have 32GB RAM in the computer :-))
Running exiftool should be just about as fast as copying the files. If, for example, you're running it on several hundred large jpegs, the type that would come out of the camera, then it can take some time depending upon the speed of the drive the files are on. For example, when I ran a command to edit data on nearly 6,000 files, it took quite some time, as it was 71 gigs worth of files.
Your R: drive doesn't enter into the processing with your example command, since the files exiftool is reading and writing are on the P: drive.