I
Immich2mo ago
fredsco

Image Date Shown Incorrectly on Immich Server Despite Correct EXIF and Backup Info

I am moving my 18,000 photos and videos from iCloud Photos to Immich. I'm using the Immich app on macOS to upload all of my iCloud content to my Immich server. I've noticed that for over 40–60% of the photos, the EXIF data appears to change once the images are on the Immich server. - I've confirmed with @Alex Tran that my images do contain EXIF data and display the correct date. Even the Immich app backup page shows the correct date. - However, once the asset is uploaded to my Immich server and I view it there, the displayed date is completely different. - Additionally, the time zones do not match.
48 Replies
Immich
Immich2mo ago
:wave: Hey @fredsco, 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. :blue_square: verified I'm on the latest release(note that mobile app releases may take some time). 2. :blue_square: read applicable release notes. 3. :blue_square: reviewed the FAQs for known issues. 4. :blue_square: reviewed Github for known issues. 5. :blue_square: tried accessing Immich via local ip (without a custom reverse proxy). 6. :blue_square: uploaded the relevant information (see below). 7. :blue_square: 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.
Alex Tran
Alex Tran2mo ago
Alright can you remove that current img you sent me from GitHub and remove it from trash? Then drag and drop the image you zip up to send me on GitHub to the web app, and take the screenshot of the date where it is put into?
fredsco
fredscoOP2mo ago
will do! give me a sec I just did it but don't see any popup, just a quick loading circle does this mean it was uploaded? FYI I dragged and dropped the zip, let me do it unzipped lol
Alex Tran
Alex Tran2mo ago
Yeah unzipped pls Haha
fredsco
fredscoOP2mo ago
haha sorry but date is correct (however no GPS)
No description
fredsco
fredscoOP2mo ago
so to sum, when drag and dropping directly to the immich web app the date is retained. using the APP on macOS it is not. can this perhaps be because I use the immich app on MacOS? I can try this by using my iPhone to isolate it..
Alex Tran
Alex Tran2mo ago
Yeah would be helpful
fredsco
fredscoOP2mo ago
give me a moment 🙂
Alex Tran
Alex Tran2mo ago
Even though the app works on macos but we never fully tested it on macos, so the file access api might behave differently there
fredsco
fredscoOP2mo ago
the downside is on iPhone the remainder of assets is reset even though all my pictures are on the server now so I think I will create an album on iPhotos and sync that it should be faster lol
Alex Tran
Alex Tran2mo ago
Yeah, current behavior is not very good. the rework upload mechanism will compare the hash with the server
fredsco
fredscoOP2mo ago
All good! Immich is getting there ❤️ give me a minute to create a temp album and only sync this. 😄 Even if I select only one album that just contains two photos for backup. the Total/Remainder is still 17629
fredsco
fredscoOP2mo ago
No description
No description
fredsco
fredscoOP2mo ago
I can delete all my photos on immich if there is no workaround I still have a backup on icloud for now 🙂 seems like "recents" is always included by default? as I also can't specifically exclude it or I have another idea. I can download them locally and turn off icloud photos on iPhone.
fredsco
fredscoOP2mo ago
ok when uploading the photo using ios app the date shows for today.
No description
fredsco
fredscoOP2mo ago
here is the same photo on icloud
No description
Alex Tran
Alex Tran2mo ago
no it is not
fredsco
fredscoOP2mo ago
@Alex Tran So drag and drop is ok. via app on mac and ios not
Alex Tran
Alex Tran2mo ago
hmm strange
fredsco
fredscoOP2mo ago
@Alex Tran you are right I was not turning on my VPN stupid me lol .. so it just hanged at that number.. Indeed strange, let me know if you need any help i.e logging etc.. etc. we can use my server as any form of testing hehe 😄 I even disabled storage template in setting as I thought maybe that messes something up but it did not change anything. It seems really something either from the APP or server.. I'd assume drag and dropping within web app uses the same function to extract exif data like using ios backup. as it is done server side? if not then you can isolate the issue easier 😛 if both sides have different functions to extract 🙂
Alex Tran
Alex Tran2mo ago
let me do some thinking'
Zeus
Zeus2mo ago
is this a screenshot or such? the overlay is odd
fredsco
fredscoOP2mo ago
Since this is open source I will also invest looking into the code as I am a software engineer as well. sure! This overlay comes from instagram probably.. but the other photo also gives the same issue, which is not edited by any other social media platofrm
Zeus
Zeus2mo ago
I think it is possible that mac is applying the exif data when you share it on the macOS but not from the iOS so we can't 100% say that the original photo contains the exif
fredsco
fredscoOP2mo ago
@Zeus we tried even on iOS fyi.. same result.
Zeus
Zeus2mo ago
sorry i misphrased that
fredsco
fredscoOP2mo ago
for example this photo (is in icloud) 30 sept 2018.. I am going to upload it now to my server using the immich ios app one moment.
No description
Zeus
Zeus2mo ago
however you shared it to github/the zip could have applied the EXIF data to the export It is known that the iOS / iCloud date is not always present in the exif, and apple does not always pass that data to immich
fredsco
fredscoOP2mo ago
ah!
Zeus
Zeus2mo ago
however when you export it my guess is it does apply the exif for export
fredsco
fredscoOP2mo ago
that changes a lot but isn't it strange thet the creation date does show correct in the backup page of the immich app. (where it shows the current asset to be uploaded?)
Zeus
Zeus2mo ago
this is especially seen for 1) whatsapp 2) screenshots and 3) sometimes videos could these be received on whatsapp?
fredsco
fredscoOP2mo ago
No description
fredsco
fredscoOP2mo ago
no not received from whatsapp Look img_0892 created on: july 10 2018. This is from the immich app. So to me it looks like it knows the date. but once uploaded not anymore
Alex Tran
Alex Tran2mo ago
I think the library we are using to get the native file can parse the date information somewhat correctly here, but the file content when they get uploaded to the server doesn't present all the metadata
Zeus
Zeus2mo ago
maybe iOS passes it in a way that we not pass on with the file itself
Alex Tran
Alex Tran2mo ago
we are moving to handle these things ourselves so we might be able to pass along extra metadata
fredsco
fredscoOP2mo ago
@Alex Tran You uploaded IMG_0892 on your server. did you drag and drop or used the immich app?
Alex Tran
Alex Tran2mo ago
drag and drop to the web
fredsco
fredscoOP2mo ago
right. that works fine for me too
Zeus
Zeus2mo ago
unfortunately this issue is so hard to replicate because iPhotos is very black box we have had similar type issues
fredsco
fredscoOP2mo ago
yes it is and that is why I want to move away from this shit.. immich is a life saver here this is outrageous how can a company make this so hard.. I really want to thank you all for this effort it means a lot to me and as a dev myself it is an inspiration I showed my GF the app and she was impressed also when I said all this smart search and facial recognition happens on my NAS. truly amazing! If you need any help either it be more photos to try to mitigate the issue am here 🙂 the smart search and facial works flawless by the way. very good had no issues at all. it is really open the app search and it is there! Let me know if this is something that can be fixed later on, if it isn't maybe my better option is to export all my photos from icloud on mac and drag and drop them. But doing so for 17K assets am not sure if that will work well lol 😛 also just thinking out straight, wouldn't a CLI for icloud photos -> immich be better here rather than an app for 17k assets or does this make no difference?
Alex Tran
Alex Tran2mo ago
I think we will investigate this further once we hit stable at the moment we are rewriting the whole mobile app data structure haha
fredsco
fredscoOP2mo ago
Can I use the API to add my own metadata and backup assets? in this case maybe. I will create a CLI tool that manually extract the data and then while uploading the asset appends them.
Alex Tran
Alex Tran2mo ago
I think Apple might have create a sidecar file when a file is editted and at the moment we are not getting those sidecar file to be uploaded (not sure if we can get them at all)
fredsco
fredscoOP2mo ago
maybe a stupid question but why would it then work when drag dropping?
Alex Tran
Alex Tran2mo ago
the key is when you export it it might have parsed the sidecar information to the file before exporting
fredsco
fredscoOP2mo ago
https://github.com/icloud-photos-downloader/icloud_photos_downloader Support for Live Photos (image and video as separate files) and RAW images (including RAW+JPEG) If I drag and drop such structure above in the webapp, will it show as a single photo with play button for live photos in immich? I'm curious if I am the only one with this issue. not sure what my best option is here lol . thinking to just export everything to files locally and start fresh on immich. @Alex Tran Since this issue will be investigated once stable I think it is worth making sure users know about it. I am not sure everyones usecase but I believe a lot of people migrate to Immich to have control over their own data. Meaning they want to move out of Google Photos and iCloud.

Did you find this page helpful?