Not sure what I'm doing wrong, and on the verge of going spare....
For this JPEG, it seems that after writing GPSLatitudeRef, GPSLatitude can't be read or rewritten... until I delete the entire GPS block and start again. The same happens with GPSLongitude and GPSLongitudeRef.
D:\Personal\My Pictures>exiftool -ver
8.23
D:\Personal\My Pictures>exiftool -G -GPS:all testgeotag.jpg
D:\Personal\My Pictures>exiftool -G -EXIF:GPSLatitude=1.2345 -EXIF:GPSLongitude=6.7890 testgeotag.jpg
1 image files updated
D:\Personal\My Pictures>exiftool -G -GPS:all testgeotag.jpg
[EXIF] GPS Version ID : 2.3.0.0
[EXIF] GPS Latitude : 1 deg 14' 4.20"
[EXIF] GPS Longitude : 6 deg 47' 20.40"
D:\Personal\My Pictures>exiftool -G -n -GPS:all testgeotag.jpg
[EXIF] GPS Version ID : 2 3 0 0
[EXIF] GPS Latitude : 1.2345
[EXIF] GPS Longitude : 6.789
D:\Personal\My Pictures>exiftool -G -EXIF:GPSLatitudeRef=S testgeotag.jpg
1 image files updated
D:\Personal\My Pictures>exiftool -G -GPS:all testgeotag.jpg
[EXIF] GPS Version ID : 2.3.0.0
[EXIF] GPS Latitude Ref : South
[EXIF] GPS Longitude : 6 deg 47' 20.40"
D:\Personal\My Pictures>exiftool -G -EXIF:GPSLatitude=1.2345 -EXIF:GPSLongitude=6.7890 testgeotag.jpg
1 image files updated
D:\Personal\My Pictures>exiftool -G -GPS:all testgeotag.jpg
[EXIF] GPS Version ID : 2.3.0.0
[EXIF] GPS Latitude Ref : South
[EXIF] GPS Longitude : 6 deg 47' 20.40"
D:\Personal\My Pictures>exiftool -G -EXIF:GPSLongitudeRef=W testgeotag.jpg
1 image files updated
D:\Personal\My Pictures>exiftool -G -GPS:all testgeotag.jpg
[EXIF] GPS Version ID : 2.3.0.0
[EXIF] GPS Latitude Ref : South
[EXIF] GPS Longitude Ref : West
D:\Personal\My Pictures>exiftool -G -EXIF:GPSLatitude=1.2345 -EXIF:GPSLongitude=6.7890 testgeotag.jpg
1 image files updated
D:\Personal\My Pictures>exiftool -G -GPS:all testgeotag.jpg
[EXIF] GPS Version ID : 2.3.0.0
[EXIF] GPS Latitude Ref : South
[EXIF] GPS Longitude Ref : West
D:\Personal\My Pictures>exiftool -G -GPS:all= testgeotag.jpg
1 image files updated
D:\Personal\My Pictures>exiftool -G -GPS:all testgeotag.jpg
D:\Personal\My Pictures>exiftool -G -EXIF:GPSLatitude=1.2345 -EXIF:GPSLongitude=6.7890 testgeotag.jpg
1 image files updated
D:\Personal\My Pictures>exiftool -G -GPS:all testgeotag.jpg
[EXIF] GPS Version ID : 2.3.0.0
[EXIF] GPS Latitude : 1 deg 14' 4.20"
[EXIF] GPS Longitude : 6 deg 47' 20.40"
writing GPSLatitude/GPSLatitudeRef at the same time doesn't help.
In this (different, but from the same camera) file, it seems after writing GPSLatitudeRef, neither GPSLatitude nor GPSLatitudeRef can be read or written again.
D:\Personal\My Pictures\Diving>exiftool -ver
8.23
D:\Personal\My Pictures\Diving>exiftool -G -GPS:all testgeotag.jpg
D:\Personal\My Pictures\Diving>exiftool -G -EXIF:GPSLatitude=1.2345 -GPSLongitude=6.7890 testgeotag.jpg
1 image files updated
D:\Personal\My Pictures\Diving>exiftool -G -GPS:all testgeotag.jpg
[EXIF] GPS Version ID : 2.3.0.0
[EXIF] GPS Latitude : 1 deg 14' 4.20"
[EXIF] GPS Longitude : 6 deg 47' 20.40"
D:\Personal\My Pictures\Diving>exiftool -G -n -GPS:all testgeotag.jpg
[EXIF] GPS Version ID : 2 3 0 0
[EXIF] GPS Latitude : 1.2345
[EXIF] GPS Longitude : 6.789
D:\Personal\My Pictures\Diving>exiftool -G -EXIF:GPSLatitudeRef=S testgeotag.jpg
1 image files updated
D:\Personal\My Pictures\Diving>exiftool -G -n -GPS:all testgeotag.jpg
[EXIF] GPS Version ID : 2 3 0 0
[EXIF] GPS Longitude : 6.789
D:\Personal\My Pictures\Diving>exiftool -G -EXIF:GPSLatitude=1.2345 -GPSLongitude=6.7890 testgeotag.jpg
1 image files updated
D:\Personal\My Pictures\Diving>exiftool -G -GPS:all testgeotag.jpg
[EXIF] GPS Version ID : 2.3.0.0
[EXIF] GPS Longitude : 6 deg 47' 20.40"
But, when viewed with -verbose...
D:\Personal\My Pictures\Diving>exiftool -verbose testgeotag.jpg | find "GPS"
| 12) GPSInfo (SubDirectory) -->
| + [GPS directory with 4 entries]
| | 0) GPSVersionID = 2 3 0 0
| | 1) GPSLatitudeRef = S
| | 2) GPSLatitude = 1 14 4.2 (1/1 14/1 21/5)
| | 3) GPSLongitude = 6 47 20.4 (6/1 47/1 102/5)
| GPSLatitude = 1,0.000000S
| GPSLongitude = 6,47.340000E
D:\Personal\My Pictures\Diving>
What am I doing wrong...??
Thanks
R
This is FAQ number 3 (https://exiftool.org/faq.html#Q3).
The basic problem is that since duplicate tags are suppressed by default you aren't seeing all of the GPS tags.
- Phil