I have a process to geotag jpgs that includes making a GPX file and using Exiftool. It works for some files (700/1300) but for some reason I can't get them all to run. I was wondering if someone could identify the problem?
I've included reduced size versions of a couple image files and the GPX file that has tags for all the files.
Files Img2013-06-06 140040.JPG, Img2013-06-06 140918.JPG - would Georeference and
Img2013_06_06_184320.JPG,Img2013-06-06 185446.JPG would not
Hi Pierre,
From the application documentation (https://exiftool.org/exiftool_pod.html):
Geotag images from the specified GPS track log file. Using the
-geotag option is equivalent to writing a value to the "Geotag"
tag. After the -geotag option has been specified, the value of
the "Geotime" tag is written to define a date/time for the
position interpolation. If "Geotime" is not specified, the value
is copied from "DateTimeOriginal". For example, the following two
commands are equivalent:
exiftool -geotag track.log image.jpg
exiftool -geotag "-Geotime<DateTimeOriginal" image.jpg
For the images you uploaded:
> exiftool -datetimeoriginal .
======== ./Img2013_06_06_140040.JPG
======== ./Img2013_06_06_140918.JPG
======== ./Img2013_06_06_184320.JPG
======== ./Img2013_06_06_185446.JPG
1 directories scanned
4 image files read
Hence the files were not geotagged. Without a date/time reference, ExifTool has no way to know the point of time in the track when the picture was taken.
- Phil
Edit: This is also troubleshooting tip number 2 (https://exiftool.org/geotag.html#Troubleshooting) on the "Geotagging with ExifTool" page.
Phil,
Sorry about that, I sent you the reduced size versions of the files and it looks like the exif data was not preserved. Given the file sizes here is a link to an FTP with the original files and copies of a couple of files that updated correctly. I've also included screen grab of the check to see if the metadata is contained.
So again, Img2013_06_06_184320.JPG,Img2013-06-06 185446.JPG would not geotag while the others process as expected using the gpx file provided
ftp://starfish.mar.dfo-mpo.gc.ca/pub/mesd/exiftesting
Hi Pierre,
I got the updated files, thanks.
Is this what you get when you try to geotag these files?:
> exiftool -geotag VGStillLoc.gpx .
Warning: Time is too far from nearest GPS fix in File:Geotime (ValueConvInv) - ./Img2013-06-06 140918.JPG
Warning: No writable tags set from ./Img2013-06-06 140918.JPG
Warning: Time is too far from nearest GPS fix in File:Geotime (ValueConvInv) - ./Img2013-06-06 184320.JPG
Warning: No writable tags set from ./Img2013-06-06 184320.JPG
Warning: Time is too far from nearest GPS fix in File:Geotime (ValueConvInv) - ./Img2013-06-06 185446.JPG
Warning: No writable tags set from ./Img2013-06-06 185446.JPG
1 directories scanned
1 image files updated
3 image files unchanged
If so, I would have hoped that the warning messages were self-explanitory.
- Phil
Edit: This is troubleshooting point number 3 (https://exiftool.org/geotag.html#Troubleshooting) on the "Geotagging with ExifTool" page.
Phil,
Yes but Img2013-06-06 140918.JPG does geotag
I edited my post above to include a link to troubleshooting point number 3 (https://exiftool.org/geotag.html#Troubleshooting). Maybe reading this will help.
- Phil
Phil,
Got it...I had to specify the Geosync even though the GPX notes time in Zulu
<wpt lat="45.360558" lon="-64.430452">
<time>2013-06-09T10:37:28Z</time>
<name>Img2013_06_09_103728.JPG</name>
Again...Great tool...and Thanks!
Pierre