-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Photos (HEIC) are corrupted when uploading via iOS app #14587
Comments
Do you mind including photos shown as corrupted here? |
Also, please try to bring your instance down, remove the images, repull and then bring the instance up and try uploading again |
I removed in the past multiple times the containers (via The photos have some sensitive meta data in them, such as location data, but I will see what I can do. In the meantime the screenshot below shows the artifact issue. Screenshot From 2024-12-09 12-51-59 Some of the maybe relevant meta data is:
I have a pretty standard install on an Ubuntu VM in Proxmox, so I hoped someone had experienced the same issue. |
If you want, you can send the photo directly from the Photos app to my email at [email protected] |
I shot a completely new photo and remove the location from the iOS Camera app (send this you, @alextran1502, via email). Some interesting observations:
Hope that helps. |
I am wondering if I can help debug this issue better by understanding when and how the uploaded photos are modified. Can someone point me to the right direction to look into that or provide some context how the original files are modified after or during successful uploads? Thank you! |
Not conclusive, because of small sample size, but it looks like the images corrupted are from the local Camera (latest iOS and immich app version). Photos shared seem to upload just fine. |
It looks not corrupted and if it would be it would show up as duplicated in the Immich app (I guess at least there is a hash check somewhere to detect corruption). My camera settings are as follows:
@alextran1502, how are images modified during upload? |
Image is not modified during upload 🤔 |
Do you mind try turn the phone off and on. Then try uploading a newly taken photo? |
That is strange that they are not modified, but somehow corrupted consistently and randomly. I restarted my phone multiple times, same result. I even removed the immich app and installed it again. |
Perhaps you can try creating a new Immich instance with brand new docker images and try uploading photo to that instance |
@alextran1502 , there might be some issue with upload handling because I see corruption uploading via web. See #14657 There is a link to a test file. It might be related to server being underpowered or something. Given client is doing the hashing, I wonder if server checks the hash after file being uploaded. Update: actually for me the problem turns out to be the download, not upload because I see on server the file has the correct hash. Would you check if the files on the server are correct in your case or have been uploaded broken? |
Seems to be corrupted during upload, because when I am downloading via ssh (scp) and are opening local I see the same artifacts. Didn't compare the hash against the original, given that it is obviously corrupted and it can be visually verified. Trying now to upgrade to the latest version published today. |
@obale then also good to check whether images downloaded from phone directly open properly. Maybe the format is not good for your PC? |
@obale Are you using iCloud-optimized storage? |
The problem may be the AAE format. It stores the images in JPG and AAE format. As far as I can tell it uploads AAE. I am checking now if I am using iCloud optimized storage, but I am not backing up the photos to iCloud. |
How do you set your phone to capture the photo in those formats? |
Under |
Even in JPG format they are corrupted, not always, but most times. |
Just as reference and because resources have been mentioned. I am running immich in a Proxmox VM (Ubuntu 24.04.1 LTS) with 24 GB of memory and 15 processors (2 Sockets and 8 Cores). Nothing else is running in the VM. |
What was is the format you have selected? Can you share the screenshot? |
I tried both formats. |
Thanks. I can't reproduce this issue with all format. We will need to be able to reproduce this for a fix. Can you try create a new test Immich instance with all stock settings and try uploading some photos there? |
Will do that. |
The bug
Photos (HEIC) uploaded via the Immich iOS app are showing up as corrupted in the Immich web interface and as (corrupted) replicated image on mobile. The corrupted photos are visualized flawed and are showing green (anod other colored) artifacts. These artifacts are not always in the same location when deleting and re-uploading the photo, at least as far as I can tell.
In version v1.121.0 and before I didn't experience this issue. Downgrading the server to v1.121.0 didn't solve the issue, so it may be related to the iOS version or a combination of both (server and mobile).
Was searching for a related issue, but couldn't find any.
The OS that Immich Server is running on
Ubuntu 24.04.1 LTS
Version of Immich Server
v1.122.1
Version of Immich Mobile App
v1.122.0
Platform with the issue
Your docker-compose.yml content
Your .env content
Reproduction steps
Relevant log output
Additional information
No response
The text was updated successfully, but these errors were encountered: