Gallery displays wrong GPS position if not in north-east region of the world
- /e/ version: 1.6
- Device model(s): FP3
- Developer mode enabled: no
- Device rooted: no
- Trackers blocker enabled: yes
Summary
Gallery does not consider the LatitudeRef and LongitudeRef fields in the EXIF data. As a result, all positions are read with positive signs and mapped to north and east respectively.
The problem
Find a picture with an EXIF GPS position not in the north-east part of the world and open it with Gallery. The position will be shown with two positive floats, placing the picture in the north-east.
What is the current behavior?
Only the absolute value of latitude and longitude is read.
What is the expected correct behavior?
LatitudeRef and LongitudeRef should be taken into account to correctly decode the position.
Relevant screenshots
EXIF data of a picture taken in the Southern Hemisphere.
Solutions
Workaround
None
Possible fixes
Read LatitudeRef (LatitudeRef) and flip the sign of the latitude (longitude) if it is 'S' ('W').