.heif get corrupted after uploading them

I just recently set up an immich server on a spare laptop that i had lying around that is running a fresh install of Linux Mint 22.1 Everything seemed to be working fine until i tried to backup the photos from my smartphone (that's the main reason i wanted to set up an immich server). Just then I noticed that some photos (in particular they were .heif format photos) were corrupting after being uploaded, to be more precise they got color shifted to shades of magenta and yellow. I tried to solve this first on my own, looking on the internet for answers and it seemed that it was caused by the library libheif that was not up to date. And sure enough, after manually transferring an image from my phone to the machine with a thumb drive and then trying to open it with the system image viewer, i see the exact same artifacts. I then managed to update to version 1.19 of the library using this custom PPA: https://launchpad.net/~ubuntuhandbook1/+archive/ubuntu/libheif. I then retried the thumb drive check and to my surprise the artifacting was actually gone, but when i got ahead and actually backed up my photos from the immich mobile app they were still corrupting like before. Note that i could only see this corrupting on the web interface of immich and in the local library files stored on the computer, not on my phone (maybe cause on the phone they were loading directly from the phone memory). I also tried to delete the docker container an freshly reinstalling immich but the issue kept appearing. What do i do? Is there a solution that i can try or I just need to wait for a release that fixes this issue? I attached screenshots of my phone interface, my pc interface and also the original .heif image.
No description
No description
No description
No description
14 Replies
Immich
Immich•3d ago
:wave: Hey @enricoPentolatore, Thanks for reaching out to us. Please carefully read this message and follow the recommended actions. This will help us be more effective in our support effort and leave more time for building Immich :immich:. References - Container Logs: docker compose logs docs - Container Status: docker ps -a docs - Reverse Proxy: https://immich.app/docs/administration/reverse-proxy - Code Formatting https://support.discord.com/hc/en-us/articles/210298617-Markdown-Text-101-Chat-Formatting-Bold-Italic-Underline#h_01GY0DAKGXDEHE263BCAYEGFJA Checklist I have... 1. :ballot_box_with_check: verified I'm on the latest release(note that mobile app releases may take some time). 2. :ballot_box_with_check: read applicable release notes. 3. :ballot_box_with_check: reviewed the FAQs for known issues. 4. :ballot_box_with_check: reviewed Github for known issues. 5. :ballot_box_with_check: tried accessing Immich via local ip (without a custom reverse proxy). 6. :ballot_box_with_check: uploaded the relevant information (see below). 7. :ballot_box_with_check: tried an incognito window, disabled extensions, cleared mobile app cache, logged out and back in, different browsers, etc. as applicable (an item can be marked as "complete" by reacting with the appropriate number) Information In order to be able to effectively help you, we need you to provide clear information to show what the problem is. The exact details needed vary per case, but here is a list of things to consider: - Your docker-compose.yml and .env files. - Logs from all the containers and their status (see above). - All the troubleshooting steps you've tried so far. - Any recent changes you've made to Immich or your system. - Details about your system (both software/OS and hardware). - Details about your storage (filesystems, type of disks, output of commands like fdisk -l and df -h). - The version of the Immich server, mobile app, and other relevant pieces. - Any other information that you think might be relevant. Please paste files and logs with proper code formatting, and especially avoid blurry screenshots. Without the right information we can't work out what the problem is. Help us help you ;) If this ticket can be closed you can use the /close command, and re-open it later if needed.
Mraedis
Mraedis•3d ago
Nothing is corrupt because that's the thumbnail you're looking at, not the original image 🙂 What version is your server?
enricoPentolatore
enricoPentolatoreOP•3d ago
Yes but when I download it from my computer it downloads as it's seen in the thumbnail... And besides, i cared about pretty thumbnails too.. Latest, I followed the guide from the website step by step just this morning
Mraedis
Mraedis•3d ago
If you wouldn't mind sharing a heif pre upload @enricoPentolatore ? Just put it here in discord, zipped up
enricoPentolatore
enricoPentolatoreOP•3d ago
There you go, this is another one that I used for testing that still gave me the same issues
Mraedis
Mraedis•3d ago
So uh what color is it supposed to be? On my pc it's just super red
enricoPentolatore
enricoPentolatoreOP•2d ago
No description
enricoPentolatore
enricoPentolatoreOP•2d ago
So the same behaviour of mine You can check in my post where I attached some corrupted images if the corruption is the same Another update also, having seen that the new v2.0 came out I tried setting it up from zero on 2.0 just an hour ago hoping it was fixed. But still the same behaviour. If you tried it, does it happen also with other .heif images or are just the ones that I snapped on my phone that are giving these issues?
Mraedis
Mraedis•2d ago
No I mean the original. The thumb is purplish pink yes like yours but the original is red
enricoPentolatore
enricoPentolatoreOP•2d ago
Well this is the original I don't know if you see it all red but to me it looks about right
Mraedis
Mraedis•2d ago
No description
Mraedis
Mraedis•2d ago
This is without Immich doing anything Just the file straight from discord to my pc if I upload that to immich it's purplish
enricoPentolatore
enricoPentolatoreOP•2d ago
Damn... Never seen this one Don't know, maybe it's my phone's fault that the .heif photos come out weird.. but it never gave me issues until today Maybe this is caused by your OS on the image? It did a similar thing even on my computer (Linux mint) Which OS ar you running?
Mraedis
Mraedis•2d ago
Windows 😛 If I have to guess, it's something with HDR what was the phone? Checking and it looks like we're on libheif 1.20.2 So maybe they did a booboo in 1.19->1.20

Did you find this page helpful?