immich-app / immich

High performance self-hosted photo and video management solution.
https://immich.app
GNU Affero General Public License v3.0
44.69k stars 2.17k forks source link

Missing GPS info for photos manually geotagged by iOS photos app #8321

Closed kerhbal closed 5 months ago

kerhbal commented 5 months ago

The bug

UPDATE This issue seems to relate to all photos that have been geotagged by iOS official photos app (by choose "add a location"), just found this because the third party app developer mentioned that the app was using iOS photos api.

Summary

I have some photos from a camera, and I have a third party app to record and add gps to them(because Canon's default app doesn't provide accurate gps). After these photos are geotagged in mobile, I can see GPS info in iPhone Photos app. Than they are uploaded to immich server. If I try to check the file in server, there is no GPS info in exiftool -a result(then of course no GPS info can be found in web/app for those photos). I think it's the gps exif format I added to the photo causing the issue. maybe due to the missing GPS Version ID, GPS Map Datum and GPS Altitude? hope we can have some default value for those if this is the issue. Thanks for looking into it.

Details

exiftool results

photos that are geotagged by Canon official app:

ExifTool Version Number         : 12.42
File Name                       : good.JPG
Directory                       : .
File Size                       : 1429 kB
File Modification Date/Time     : 2024:03:24 14:59:47-04:00
File Access Date/Time           : 2024:03:28 08:29:01-04:00
File Inode Change Date/Time     : 2024:03:28 08:29:00-04:00
File Permissions                : -rw-r--r--
File Type                       : JPEG
File Type Extension             : jpg
MIME Type                       : image/jpeg
Exif Byte Order                 : Big-endian (Motorola, MM)
Image Description               :
Make                            : Canon
Camera Model Name               : Canon EOS M5
Orientation                     : Horizontal (normal)
X Resolution                    : 180
Y Resolution                    : 180
Resolution Unit                 : inches
Modify Date                     : 2024:03:24 14:59:47
Y Cb Cr Positioning             : Centered
Exposure Time                   : 1/2500
F Number                        : 6.3
Exposure Program                : Shutter speed priority AE
ISO                             : 400
Sensitivity Type                : Recommended Exposure Index
Recommended Exposure Index      : 400
Exif Version                    : 0230
Date/Time Original              : 2024:03:24 14:59:47
Create Date                     : 2024:03:24 14:59:47
Components Configuration        : Y, Cb, Cr, -
Compressed Bits Per Pixel       : 3
Shutter Speed Value             : 1/2489
Aperture Value                  : 6.3
Exposure Compensation           : 0
Max Aperture Value              : 8.9
Metering Mode                   : Multi-segment
Flash                           : Off, Did not fire
Focal Length                    : 200.0 mm
Sub Sec Time                    : 86
Sub Sec Time Original           : 86
Sub Sec Time Digitized          : 86
Flashpix Version                : 0100
Color Space                     : sRGB
Exif Image Width                : 6000
Exif Image Height               : 4000
Focal Plane X Resolution        : 6825.938567
Focal Plane Y Resolution        : 6825.938567
Focal Plane Resolution Unit     : inches
Sensing Method                  : One-chip color area
File Source                     : Digital Camera
Custom Rendered                 : Normal
Exposure Mode                   : Auto
White Balance                   : Auto
Digital Zoom Ratio              : 1
Scene Capture Type              : Standard
Serial Number                   : sss
Lens Info                       : 55-200mm f/0
Lens Model                      : EF-M55-200mm f/4.5-6.3 IS STM
Lens Serial Number              : sss
GPS Version ID                  : 2.3.0.0
GPS Latitude Ref                : North
GPS Latitude                    : 30 deg 11' 11.11"
GPS Longitude Ref               : West
GPS Longitude                   : 60 deg 11' 11.11"
GPS Altitude Ref                : Above Sea Level
GPS Altitude                    : 246.4 m
GPS Time Stamp                  : 18:11:36
GPS Status                      : Measurement Active
GPS Map Datum                   : WGS-84
GPS Date Stamp                  : 2024:03:24
XMP Toolkit                     : XMP Core 6.0.0
Lens Info                       : 55-200mm f/?
Firmware                        : Firmware Version 1.00
Lens ID                         : sss
Lens                            : Canon EF-M55-200mm f/4.5-6.3 IS STM
Flash Compensation              : 0
Modify Date                     : 2024:03:24 14:59:47
Rating                          : 0
Create Date                     : 2024:03:24 14:59:47
Date Created                    : 2024:03:24 14:59:47
Description                     :
Rights                          :
Creator                         :
Profile CMM Type                : Apple Computer Inc.
Profile Version                 : 4.0.0
Profile Class                   : Display Device Profile
Color Space Data                : RGB
Profile Connection Space        : XYZ
Profile Date Time               : 2022:01:01 00:00:00
Profile File Signature          : acsp
Primary Platform                : Apple Computer Inc.
CMM Flags                       : Not Embedded, Independent
Device Manufacturer             : Apple Computer Inc.
Device Model                    :
Device Attributes               : Reflective, Glossy, Positive, Color
Rendering Intent                : Perceptual
Connection Space Illuminant     : 0.9642 1 0.82491
Profile Creator                 : Apple Computer Inc.
Profile ID                      : sss
Profile Description             : Display P3
Profile Copyright               : Copyright Apple Inc., 2022
Media White Point               : 0.96419 1 0.82489
Red Matrix Column               : 0.51512 0.2412 -0.00105
Green Matrix Column             : 0.29198 0.69225 0.04189
Blue Matrix Column              : 0.1571 0.06657 0.78407
Red Tone Reproduction Curve     : (Binary data 32 bytes, use -b option to extract)
Chromatic Adaptation            : 1.04788 0.02292 -0.0502 0.02959 0.99048 -0.01706 -0.00923 0.01508 0.75168
Blue Tone Reproduction Curve    : (Binary data 32 bytes, use -b option to extract)
Green Tone Reproduction Curve   : (Binary data 32 bytes, use -b option to extract)
Current IPTC Digest             : bc06fbf9bce92ffb6184fc1530695335
Coded Character Set             : UTF8
Application Record Version      : 2
Digital Creation Date           : 2024:03:24
Digital Creation Time           : 14:59:47
Caption-Abstract                :
Time Created                    : 14:59:47
Date Created                    : 2024:03:24
IPTC Digest                     : bc06fbf9bce92ffb6184fc1530695335
Image Width                     : 1711
Image Height                    : 3706
Encoding Process                : Baseline DCT, Huffman coding
Bits Per Sample                 : 8
Color Components                : 3
Y Cb Cr Sub Sampling            : YCbCr4:2:0 (2 2)
Aperture                        : 6.3
Image Size                      : 1711x3706
Megapixels                      : 6.3
Scale Factor To 35 mm Equivalent: 1.6
Shutter Speed                   : 1/2500
Create Date                     : 2024:03:24 14:59:47.86
Date/Time Original              : 2024:03:24 14:59:47.86
Modify Date                     : 2024:03:24 14:59:47.86
GPS Altitude                    : 246.4 m Above Sea Level
GPS Date/Time                   : 2024:03:24 18:11:36Z
GPS Latitude                    : 30 deg 11' 11.11" N
GPS Longitude                   : 60 deg 11' 11.11" W
Date/Time Created               : 2024:03:24 14:59:47
Digital Creation Date/Time      : 2024:03:24 14:59:47
Circle Of Confusion             : 0.019 mm
Field Of View                   : 6.4 deg
Focal Length                    : 200.0 mm (35 mm equivalent: 322.5 mm)
GPS Position                    : 30 deg 11' 11.11" N, 60 deg 11' 11.11" W
Hyperfocal Distance             : 340.73 m
Light Value                     : 14.6
Lens ID                         : Canon EF-M 55-200mm f/4.5-6.3 IS STM

photo with issue. before uploading to immich:

ExifTool Version Number         : 12.42
File Name                       : IMG_7601.JPG
Directory                       : .
File Size                       : 2.3 MB
File Modification Date/Time     : 2024:03:28 07:12:38-04:00
File Access Date/Time           : 2024:03:28 08:59:09-04:00
File Inode Change Date/Time     : 2024:03:28 08:59:06-04:00
File Permissions                : -rw-r--r--
File Type                       : JPEG
File Type Extension             : jpg
MIME Type                       : image/jpeg
JFIF Version                    : 1.01
Resolution Unit                 : None
X Resolution                    : 180
Y Resolution                    : 180
Exif Byte Order                 : Big-endian (Motorola, MM)
Image Description               :
Make                            : Canon
Camera Model Name               : Canon EOS M5
Orientation                     : Horizontal (normal)
X Resolution                    : 180
Y Resolution                    : 180
Resolution Unit                 : inches
Modify Date                     : 2024:03:28 07:12:38
Exposure Time                   : 1/500
F Number                        : 4.5
Exposure Program                : Shutter speed priority AE
ISO                             : 250
Sensitivity Type                : Recommended Exposure Index
Recommended Exposure Index      : 250
Exif Version                    : 0230
Date/Time Original              : 2024:03:28 07:12:38
Create Date                     : 2024:03:28 07:12:38
Components Configuration        : Y, Cb, Cr, -
Compressed Bits Per Pixel       : 3
Shutter Speed Value             : 1/501
Aperture Value                  : 4.5
Exposure Compensation           : 0
Max Aperture Value              : 4.8
Metering Mode                   : Multi-segment
Flash                           : Off, Did not fire
Focal Length                    : 55.0 mm
Sub Sec Time                    : 26
Sub Sec Time Original           : 26
Sub Sec Time Digitized          : 26
Flashpix Version                : 0100
Color Space                     : sRGB
Exif Image Width                : 6000
Exif Image Height               : 4000
Focal Plane X Resolution        : 6825.938567
Focal Plane Y Resolution        : 6825.938567
Focal Plane Resolution Unit     : inches
Sensing Method                  : One-chip color area
File Source                     : Digital Camera
Custom Rendered                 : Normal
Exposure Mode                   : Auto
White Balance                   : Auto
Digital Zoom Ratio              : 1
Scene Capture Type              : Standard
Serial Number                   : sss
Lens Info                       : 55-200mm f/0
Lens Model                      : EF-M55-200mm f/4.5-6.3 IS STM
Lens Serial Number              : sss
GPS Latitude Ref                : North
GPS Latitude                    : 30 deg 11' 11.11"
GPS Longitude Ref               : West
GPS Longitude                   : 60 deg 11' 11.11"
GPS Time Stamp                  : 11:25:18
GPS Date Stamp                  : 2024:03:28
GPS Horizontal Positioning Error: 0 m
XMP Toolkit                     : XMP Core 6.0.0
Lens Info                       : 55-200mm f/?
Firmware                        : Firmware Version 1.00
Lens ID                         : 4149
Lens                            : Canon EF 55-200mm f/4.5-5.6 or Canon EF 55-200mm f/4.5-5.6 II USM
Flash Compensation              : 0
Modify Date                     : 2024:03:28 07:12:38
Rating                          : 0
Create Date                     : 2024:03:28 07:12:38
Date Created                    : 2024:03:28 07:12:38
Description                     :
Rights                          :
Creator                         :
Current IPTC Digest             : af81a34c2986477265dc9fa36db3a81d
Coded Character Set             : UTF8
Application Record Version      : 2
Digital Creation Date           : 2024:03:28
Digital Creation Time           : 07:12:38
Caption-Abstract                :
Date Created                    : 2024:03:28
Time Created                    : 07:12:38
IPTC Digest                     : af81a34c2986477265dc9fa36db3a81d
Image Width                     : 6000
Image Height                    : 4000
Encoding Process                : Baseline DCT, Huffman coding
Bits Per Sample                 : 8
Color Components                : 3
Y Cb Cr Sub Sampling            : YCbCr4:2:2 (2 1)
Aperture                        : 4.5
Image Size                      : 6000x4000
Megapixels                      : 24.0
Scale Factor To 35 mm Equivalent: 1.6
Shutter Speed                   : 1/500
Create Date                     : 2024:03:28 07:12:38.26
Date/Time Original              : 2024:03:28 07:12:38.26
Modify Date                     : 2024:03:28 07:12:38.26
GPS Date/Time                   : 2024:03:28 11:25:18Z
GPS Latitude                    : 30 deg 11' 11.11" N
GPS Longitude                   : 60 deg 11' 11.11" W
Date/Time Created               : 2024:03:28 07:12:38
Digital Creation Date/Time      : 2024:03:28 07:12:38
Circle Of Confusion             : 0.019 mm
Field Of View                   : 22.9 deg
Focal Length                    : 55.0 mm (35 mm equivalent: 88.7 mm)
GPS Position                    : 30 deg 11' 11.11" N, 60 deg 11' 11.11" W
Hyperfocal Distance             : 36.07 m
Light Value                     : 12.0
Lens ID                         : Canon EF-M 55-200mm f/4.5-6.3 IS STM

photo with issue. before uploading to immich:

ExifTool Version Number         : 12.42
File Name                       : IMG_7601-from server.JPG
Directory                       : .
File Size                       : 4.9 MB
File Modification Date/Time     : 2024:03:28 08:57:33-04:00
File Access Date/Time           : 2024:03:28 08:58:34-04:00
File Inode Change Date/Time     : 2024:03:28 08:58:33-04:00
File Permissions                : -rw-r--r--
File Type                       : JPEG
File Type Extension             : jpg
MIME Type                       : image/jpeg
Exif Byte Order                 : Little-endian (Intel, II)
Image Description               :
Make                            : Canon
Camera Model Name               : Canon EOS M5
Orientation                     : Horizontal (normal)
X Resolution                    : 180
Y Resolution                    : 180
Resolution Unit                 : inches
Modify Date                     : 2024:03:28 07:12:38
Artist                          :
Y Cb Cr Positioning             : Co-sited
Copyright                       :
Exposure Time                   : 1/500
F Number                        : 4.5
Exposure Program                : Shutter speed priority AE
ISO                             : 250
Sensitivity Type                : Recommended Exposure Index
Recommended Exposure Index      : 250
Exif Version                    : 0230
Date/Time Original              : 2024:03:28 07:12:38
Create Date                     : 2024:03:28 07:12:38
Components Configuration        : Y, Cb, Cr, -
Compressed Bits Per Pixel       : 3
Shutter Speed Value             : 1/501
Aperture Value                  : 4.5
Exposure Compensation           : 0
Metering Mode                   : Multi-segment
Flash                           : Off, Did not fire
Focal Length                    : 55.0 mm
Macro Mode                      : Normal
Self Timer                      : Off
Quality                         : Fine
Canon Flash Mode                : Off
Continuous Drive                : Single
Focus Mode                      : One-shot AF
Record Mode                     : CR2+JPEG
Canon Image Size                : Large
Easy Mode                       : Manual
Digital Zoom                    : None
Contrast                        : Normal
Saturation                      : Normal
Camera ISO                      : Auto
Metering Mode                   : Evaluative
Focus Range                     : Auto
AF Point                        : Manual AF point selection
Canon Exposure Mode             : Shutter speed priority AE
Lens Type                       : Canon EF-M 55-200mm f/4.5-6.3 IS STM
Max Focal Length                : 200 mm
Min Focal Length                : 55 mm
Focal Units                     : 1/mm
Max Aperture                    : 4.5
Min Aperture                    : 22
Flash Activity                  : 0
Flash Bits                      : (none)
Focus Continuous                : Single
Image Stabilization             : On (2)
Display Aperture                : 13.9
Zoom Source Width               : 6000
Zoom Target Width               : 6000
Spot Metering Mode              : Center
Manual Flash Output             : n/a
Color Tone                      : Normal
Auto ISO                        : 122
Base ISO                        : 200
Measured EV                     : 11.91
Target Aperture                 : 4.5
Target Exposure Time            : 1/501
Exposure Compensation           : 0
White Balance                   : Auto
Slow Shutter                    : Off
Shot Number In Continuous Burst : 0
Optical Zoom Code               : 0
Flash Guide Number              : 0
Flash Exposure Compensation     : 0
Auto Exposure Bracketing        : Off
AEB Bracket Value               : 0
Control Mode                    : Camera Local Control
F Number                        : 4.5
Exposure Time                   : 1/512
Bulb Duration                   : 0
Camera Type                     : Compact
Auto Rotate                     : None
ND Filter                       : n/a
Self Timer 2                    : 0
Canon Image Type                : IMG:EOS M5 JPEG
Canon Firmware Version          : Firmware Version 1.00
File Number                     : 250-7601
Camera Temperature              : 212 C
Canon Model ID                  : EOS M5
Thumbnail Image Valid Area      : 0 159 7 112
Date Stamp Mode                 : Off
Firmware Revision               : 1.00 rev 7.00
Categories                      : (none)
Intelligent Contrast            : n/a
Image Unique ID                 : 37d95c2a6d8f24973fcf45bd56b69d52
Faces Detected                  : 65535
Time Zone                       : -04:00
Time Zone City                  : (not set)
Daylight Savings                : On
AF Area Mode                    : Flexizone Single
Num AF Points                   : 49
Valid AF Points                 : 1
Canon Image Width               : 6000
Canon Image Height              : 4000
AF Image Width                  : 6000
AF Image Height                 : 4000
AF Area Widths                  : 684 -1 -1 0 -1 0 -1 -1 0 -1 0 -1 -1 0 -1 0 12488 -1 -32 -3083 -31524 1932 -25764 0 0 -31524 1932 -25764 0 0 536 2 1877 0 0 -25852 -1 0 18220 0 0 0 18220 0 -3614 95 17428 0 -8664
AF Area Heights                 : 420 -24288 16412 21143 11987 103 -24288 16412 21143 11987 103 -24288 16412 21143 11987 103 1840 34 0 -1 6060 0 6060 1756 536 6060 0 6060 1396 536 536 -31149 243 1948 0 -31127 3392 0 18220 5200 16412 21143 0 18220 -27395 -11351 -9139 5 4
AF Area X Positions             : 908 1800 0 -1 0 1732 8 1712 8 684 0 0 1712 1752 684 1800 -25898 1852 -25898 684 6 1744 1833 8 684 -1 8 -1 -1 684 -1 0 -1 -31596 684 -1 -1 0 -1 684 12488 -1 17 -3343 684 1932 -25764 -1 -1
AF Area Y Positions             : -867 6 31171 0 31679 8 -1 1640 2 420 1752 30297 6 1640 420 2 31171 2 30497 420 1752 3 1760 2 420 8 -9555 -24288 16412 420 11987 103 -24288 6060 420 -24288 16412 21143 11987 420 1920 56 0 -1 420 0 6060 -24288 16412
AF Points In Focus              : 0
AF Points Selected              : (none)
Bracket Mode                    : Off
Bracket Value                   : 0
Bracket Shot Number             : 0
Raw Jpg Quality                 : Fine
Raw Jpg Size                    : Large
WB Bracket Mode                 : Off
WB Bracket Value AB             : 0
WB Bracket Value GM             : 0
Live View Shooting              : On
Focus Distance Upper            : inf
Focus Distance Lower            : 81.91 m
Shutter Mode                    : Electronic First Curtain
Flash Exposure Lock             : Off
Internal Serial Number          : sss
ISO Expansion                   : Off
Safety Shift                    : Enable (Tv/Av)
Dial Direction Tv Av            : Normal
Custom Controls                 : 0 0 1 1 33 45 11 23 42 44
Warning                         : [minor] Missing 2 entries in CanonCustom2 group 4 directory
Warning                         : Possibly corrupted CanonCustom2 data
Aspect Ratio                    : 3:2
Cropped Image Width             : 6000
Cropped Image Height            : 4000
Cropped Image Left              : 0
Cropped Image Top               : 0
Tone Curve                      : Standard
Sharpness                       : 3
Sharpness Frequency             : Unknown (-1)
Sensor Red Level                : -1
Sensor Blue Level               : -1
White Balance Red               : -1
White Balance Blue              : -1
Color Temperature               : 5000
Picture Style                   : Auto
Digital Gain                    : 0
WB Shift AB                     : 0
WB Shift GM                     : 0
Measured RGGB                   : 1779 1024 1024 1204
VRD Offset                      : 0
Picture Style User Def          : Auto; Auto; Auto
Picture Style PC                : n/a; n/a; n/a
Custom Picture Style File Name  :
Peripheral Lighting Setting     : On
Chromatic Aberration Setting    : On
Distortion Correction Setting   : Off
Peripheral Illumination Corr    : Off
Auto Lighting Optimizer         : Standard
Highlight Tone Priority         : Off
Long Exposure Noise Reduction   : Auto
High ISO Noise Reduction        : Strong
Ambience Selection              : Standard
Grainy B/W Filter               : Off
Soft Focus Filter               : Off
Toy Camera Filter               : Off
Miniature Filter                : Off
Miniature Filter Orientation    : Unknown (-1)
Miniature Filter Position       : -1
Miniature Filter Parameter      : -1
Fisheye Filter                  : Off
Painting Filter                 : Off
Watercolor Filter               : Off
User Comment                    :
Sub Sec Time                    : 26
Sub Sec Time Original           : 26
Sub Sec Time Digitized          : 26
Flashpix Version                : 0100
Color Space                     : sRGB
Exif Image Width                : 6000
Exif Image Height               : 4000
Interoperability Index          : R98 - DCF basic file (sRGB)
Interoperability Version        : 0100
Related Image Width             : 6000
Related Image Height            : 4000
Focal Plane X Resolution        : 6825.938567
Focal Plane Y Resolution        : 6825.938567
Focal Plane Resolution Unit     : inches
Sensing Method                  : One-chip color area
File Source                     : Digital Camera
Custom Rendered                 : Normal
Exposure Mode                   : Auto
White Balance                   : Auto
Digital Zoom Ratio              : 1
Scene Capture Type              : Standard
Owner Name                      :
Serial Number                   : sss
Lens Info                       : 55-200mm f/0
Lens Model                      : EF-M55-200mm f/4.5-6.3 IS STM
Lens Serial Number              : sss
GPS Version ID                  : 2.3.0.0
Compression                     : JPEG (old-style)
X Resolution                    : 180
Y Resolution                    : 180
Resolution Unit                 : inches
Thumbnail Offset                : 20480
Thumbnail Length                : 2256
Rating                          : 0
MPF Version                     : 0100
Number Of Images                : 2
MP Image Flags                  : Dependent parent image
MP Image Format                 : JPEG
MP Image Type                   : Baseline MP Primary Image
MP Image Length                 : 4783394
MP Image Start                  : 0
Dependent Image 1 Entry Number  : 2
Dependent Image 2 Entry Number  : 0
MP Image Flags                  : Dependent child image
MP Image Format                 : JPEG
MP Image Type                   : Large Thumbnail (full HD equivalent)
MP Image Length                 : 162318
MP Image Start                  : 4783616
Dependent Image 1 Entry Number  : 0
Dependent Image 2 Entry Number  : 0
Image Width                     : 6000
Image Height                    : 4000
Encoding Process                : Baseline DCT, Huffman coding
Bits Per Sample                 : 8
Color Components                : 3
Y Cb Cr Sub Sampling            : YCbCr4:2:2 (2 1)
Drive Mode                      : Single-frame Shooting
ISO                             : 243
Lens                            : 55.0 - 200.0 mm
Shooting Mode                   : Shutter speed priority AE
Aperture                        : 4.5
Image Size                      : 6000x4000
Lens ID                         : Canon EF-M 55-200mm f/4.5-6.3 IS STM
Megapixels                      : 24.0
Scale Factor To 35 mm Equivalent: 1.6
Shutter Speed                   : 1/500
Create Date                     : 2024:03:28 07:12:38.26
Date/Time Original              : 2024:03:28 07:12:38.26
Modify Date                     : 2024:03:28 07:12:38.26
Thumbnail Image                 : (Binary data 2256 bytes, use -b option to extract)
Preview Image                   : (Binary data 162318 bytes, use -b option to extract)
Lens                            : 55.0 - 200.0 mm (35 mm equivalent: 88.7 - 322.5 mm)
Circle Of Confusion             : 0.019 mm
Depth Of Field                  : inf (32.86 m - inf)
Field Of View                   : 22.9 deg
Focal Length                    : 55.0 mm (35 mm equivalent: 88.7 mm)
Hyperfocal Distance             : 36.07 m
Light Value                     : 12.0

The OS that Immich Server is running on

Docker in Synology DSM7

Version of Immich Server

v1.99.0

Version of Immich Mobile App

v1.99.0

Platform with the issue

Your docker-compose.yml content

version: '3.8'

#
# WARNING: Make sure to use the docker-compose.yml of the current release:
#
# https://github.com/immich-app/immich/releases/latest/download/docker-compose.yml
#
# The compose file on main may not be compatible with the latest release.
#

name: immich

services:
  immich-server:
    container_name: immich_server
    image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
    command: ['start.sh', 'immich']
    volumes:
      - ${UPLOAD_LOCATION}:/usr/src/app/upload
      - /etc/localtime:/etc/localtime:ro
    env_file:
      - .env
    ports:
      - 2283:3001
    depends_on:
      - redis
      - database
    restart: always

  immich-microservices:
    container_name: immich_microservices
    image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
    # extends: # uncomment this section for hardware acceleration - see https://immich.app/docs/features/hardware-transcoding
    #   file: hwaccel.transcoding.yml
    #   service: cpu # set to one of [nvenc, quicksync, rkmpp, vaapi, vaapi-wsl] for accelerated transcoding
    command: ['start.sh', 'microservices']
    volumes:
      - ${UPLOAD_LOCATION}:/usr/src/app/upload
      - /etc/localtime:/etc/localtime:ro
    env_file:
      - .env
    depends_on:
      - redis
      - database
    restart: always

  immich-machine-learning:
    container_name: immich_machine_learning
    # For hardware acceleration, add one of -[armnn, cuda, openvino] to the image tag.
    # Example tag: ${IMMICH_VERSION:-release}-cuda
    image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release}
    # extends: # uncomment this section for hardware acceleration - see https://immich.app/docs/features/ml-hardware-acceleration
    #   file: hwaccel.ml.yml
    #   service: cpu # set to one of [armnn, cuda, openvino, openvino-wsl] for accelerated inference - use the `-wsl` version for WSL2 where applicable
    volumes:
      - model-cache:/cache
    env_file:
      - .env
    restart: always

  redis:
    container_name: immich_redis
    image: registry.hub.docker.com/library/redis:6.2-alpine@sha256:51d6c56749a4243096327e3fb964a48ed92254357108449cb6e23999c37773c5
    restart: always

  database:
    container_name: immich_postgres
    image: registry.hub.docker.com/tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:90724186f0a3517cf6914295b5ab410db9ce23190a2d9d0b9dd6463e3fa298f0
    environment:
      POSTGRES_PASSWORD: ${DB_PASSWORD}
      POSTGRES_USER: ${DB_USERNAME}
      POSTGRES_DB: ${DB_DATABASE_NAME}
    volumes:
      - pgdata:/var/lib/postgresql/data
    restart: always

volumes:
  pgdata:
  model-cache:

Your .env content

# You can find documentation for all the supported env variables at https://immich.app/docs/install/environment-variables

# The location where your uploaded files are stored
UPLOAD_LOCATION=./library

# The Immich version to use. You can pin this to a specific version like "v1.71.0"
IMMICH_VERSION=release

# Connection secret for postgres. You should change it to a random password
DB_PASSWORD=xxx

# The values below this line do not need to be changed
###################################################################################
DB_HOSTNAME=immich_postgres
DB_USERNAME=postgres
DB_DATABASE_NAME=immich

REDIS_HOSTNAME=immich_redis

Reproduction steps

1. take photos without gps in a camera
2. use app `Geotag Photos Tagger` to geotag the photo with some gpx file
3. upload the photo to immich

(OR just use the exiftool output as a sample)
...

Additional information

No response

alextran1502 commented 5 months ago

Can you please share a sample photo with the issue so we can help troubleshoot?

kerhbal commented 5 months ago

@alextran1502 actually I think this is a bigger problem, as it applies to all photos tagged by iOS built-in logic as well. I just checked with the developer of that app regarding the exif, he said it is done by iOS photos api. So I tried to use iOS photos app to directly add location to a photo and back it up to immich, the result is the photo also shares the same problem, I cannot find the location info after it's uploaded to immich. here is an example photo f53702656

alextran1502 commented 5 months ago

Manually changing the EXIF info generates a XMP files, they aren't accounted for when upload the original file to Immich

kerhbal commented 5 months ago

@alextran1502 I see, that explains a lot... and I assume when I airdrop the photo to my Mac, Apple embedded the GPS into the exported file automatically. it is related to https://github.com/immich-app/immich/issues/1941

alextran1502 commented 5 months ago

Yes that is correct

kerhbal commented 5 months ago

I'll close this one for now