EXIF GPSLatitudeRef tag value setting gets inverted
Bug #1156881 reported by
Vanessa Lee
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libimage-exiftool-perl (Ubuntu) |
Invalid
|
Undecided
|
boardhead |
Bug Description
Try this:
$ exiftool -c "%d %d %f" "-EXIF:
1 image files updated
Then you get:
$ exiftool -c "%d %d %f" -G -t test.jpg
ExifTool ExifTool Version Number 7.89
EXIF GPS Version ID 2.2.0.0
EXIF GPS Longitude Ref West
Composite GPS Latitude 82 23 43.234000 N
Composite GPS Latitude Ref South
Composite GPS Longitude 120 49 2.012000 W
Composite GPS Position 82 23 43.234000 N, 120 49 2.012000 W
To post a comment you must log in.
Thanks for this report. The contradiction is due to conflicting metadata in your image:
# Image-ExifTool- 8.60/exiftool ~/Desktop/test.jpg -a -G1 -'*gps*'
[GPS] GPS Version ID : 2.2.0.0
[GPS] GPS Latitude Ref : North
[GPS] GPS Latitude : 82.395343
[GPS] GPS Longitude Ref : West
[GPS] GPS Longitude : 120.817226
[XMP-exif] GPS Latitude : 34.234200 S
[Composite] GPS Latitude : 82.395343 N
[Composite] GPS Latitude Ref : South
[Composite] GPS Longitude : 120.817226 W
[Composite] GPS Position : 82.395343 N, 120.817226 W
The XMP GPSLatitude conflicts with the EXIF. The purpose of the Composte GPSLatitudeRef is to obtain a reference direction from the XMP GPS for use when copying XMP to EXIF. To see the EXIF GPS that you have written, you should add the -a option and look at the GPS tags, and/or delete the incorrect XMP:GPSLatitude from this file. For example, this shows the information you wrote:
# exiftool -c "%d %d %f" -G -t -a -gps:all test.jpg
- Phil