[BUG] GPS data "GPS Altitude" info cannot be decoded from EXIF info #972

Closed
opened 2026-02-04 23:44:50 +03:00 by OVERLORD · 3 comments
Owner

Originally created by @ElhananWeizman on GitHub (Jun 19, 2023).

The bug

when uploading from WEB, MOV\MP4 files with meta data that has the next GPS Coordinates(for example)
-GPSCoordinates"32.0000,35.0000,500.0"
the GPS location of the file is not available in map section on the immich web,

and with GPS Coordinates -GPSCoordinates"32.0000,35.0000,50.0"
the Coordinates on the web is showing as 35.0000000,50.0000000

it seams thet the "EXTRACT METADATA" JOB don't know how to handle -GPSCoordinates that have "GPS Altitude"

becose when i remove the Altitude Tag from the meta data the location is working as it should

The OS that Immich Server is running on

windows 11

Version of Immich Server

v1.61.0

Version of Immich Mobile App

NA

Platform with the issue

  • Server
  • Web
  • Mobile

Your docker-compose.yml content

NA

Your .env content

NA

Reproduction steps

1.upload MOV file with -GPSCoordinates"32.0000,35.0000,500.0" from the web upload button
2.check on map section in the web for that file 
3.remove the GPS Altitude (500.0) from the -GPSCoordinates and check again 
...

Additional information

No response

Originally created by @ElhananWeizman on GitHub (Jun 19, 2023). ### The bug when uploading from WEB, MOV\MP4 files with meta data that has the next GPS Coordinates(for example) -GPSCoordinates"32.0000,35.0000,500.0" the GPS location of the file is not available in map section on the immich web, and with GPS Coordinates -GPSCoordinates"32.0000,35.0000,50.0" the Coordinates on the web is showing as 35.0000000,50.0000000 it seams thet the "EXTRACT METADATA" JOB don't know how to handle -GPSCoordinates that have "GPS Altitude" becose when i remove the Altitude Tag from the meta data the location is working as it should ### The OS that Immich Server is running on windows 11 ### Version of Immich Server v1.61.0 ### Version of Immich Mobile App NA ### Platform with the issue - [X] Server - [ ] Web - [ ] Mobile ### Your docker-compose.yml content ```YAML NA ``` ### Your .env content ```Shell NA ``` ### Reproduction steps ```bash 1.upload MOV file with -GPSCoordinates"32.0000,35.0000,500.0" from the web upload button 2.check on map section in the web for that file 3.remove the GPS Altitude (500.0) from the -GPSCoordinates and check again ... ``` ### Additional information _No response_
OVERLORD added the 🗄️server label 2026-02-04 23:44:50 +03:00
Author
Owner

@klejejs commented on GitHub (Jun 19, 2023):

I just noticed a similar issue. I have a video file with the following EXIF data, in this case, the parsing does not fail, but the location is incorrectly mapped to somewhere totally different:

GPS Coordinates                 : 58 deg 29' 34.80" N, 4 deg 25' 36.84" W, 6.74 m Below Sea Level
GPS Altitude                    : 6.74 m
GPS Altitude Ref                : Below Sea Level
GPS Latitude                    : 58 deg 29' 34.80" N
GPS Longitude                   : 4 deg 25' 36.84" W
Rotation                        : 0
GPS Position                    : 58 deg 29' 34.80" N, 4 deg 25' 36.84" W
@klejejs commented on GitHub (Jun 19, 2023): I just noticed a similar issue. I have a video file with the following EXIF data, in this case, the parsing does not fail, but the location is incorrectly mapped to somewhere totally different: ``` GPS Coordinates : 58 deg 29' 34.80" N, 4 deg 25' 36.84" W, 6.74 m Below Sea Level GPS Altitude : 6.74 m GPS Altitude Ref : Below Sea Level GPS Latitude : 58 deg 29' 34.80" N GPS Longitude : 4 deg 25' 36.84" W Rotation : 0 GPS Position : 58 deg 29' 34.80" N, 4 deg 25' 36.84" W ```
Author
Owner

@ElhananWeizman commented on GitHub (Jun 20, 2023):

Hi klejejs,

i think its the same issue, if you look at the GPSCoordinates on the map of the exemple you gave i think you will see 36.84 on latitude and 6.74 on the longitude or something like that,
it becouse it takes the Altitude(6.74 at your case) and think that its the longitude

@ElhananWeizman commented on GitHub (Jun 20, 2023): Hi klejejs, i think its the same issue, if you look at the GPSCoordinates on the map of the exemple you gave i think you will see 36.84 on latitude and 6.74 on the longitude or something like that, it becouse it takes the Altitude(6.74 at your case) and think that its the longitude
Author
Owner

@bo0tzz commented on GitHub (Sep 18, 2023):

Fixed by #2908

@bo0tzz commented on GitHub (Sep 18, 2023): Fixed by #2908
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#972