How can I copy EXIF header location of photo from another photo?

Started by pstein, November 07, 2023, 11:18:17 AM

Previous topic - Next topic

pstein

Assume I have 2 *.jpg photos of the same location taken from almost the same position.

Unfortunately I edited photo 2 with an editor which does NOT preserve some header information like location.
So this header field is empty/destroyed.

How can I copy location data from photo 1 and save it into the corresponding location header field of photo 2....with ExifTool?

StarGeek

The simplest way would be
exiftool -TagsFromFile Source.jpg -All:All Target.jpg

This will copy all EXIF, IPTC, and XMP data from the source file to the target file.  There are some tags that are marked as Unsafe to copy, such as a thumbnail or ICC_Profile, so those won't get copied.

See Copying examples for more commands.
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype