-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Images backed up from iOS don't keep correct orientation #8355
Comments
Of course, here is the file. It is the original, a HEIC file (the now default file format for photos in iOS). Orientation data in HEIC: Orientation data in JPEG: |
I Have just installed the Immich on Unraid and observing the same issue with some of my photos (mostly selfies). |
A simple rotate/crop tool would really help with similar issues. |
Hi @alextran1502 did the images I shared give an indication as to why Immich is displaying them with the wrong rotation? Thanks. |
@j-peeters Hello; I did look at the orientation info extracted from the photo and I don't see anything abnormal to other images. At the moment, I haven't figured out the cause yet. We might need to look into updating the dependency such as Sharp to see if it help generating the correct orientation |
Thanks for the update @alextran1502 hopefully an updated Sharp will fix it. Would love to use this fabulous service. Thanks for your time and effort! |
Also experiencing this issue |
Hi @alextran1502, I'm eager to start using Immich, so I wonder if you have had time to see if an updated dependency solves the orientation issue? Thanks. |
Turns out HEIF exif is a bit weird and rotation is intentionally ignored by vips. I think it isn't actually in the spec for HEIF. |
Thanks for the comment @jrasm91. Do you think that you could implement something in Immich that helps show images (and add I understand videos) in the orientation in which they were taken? Because otherwise it's not a great way to view your material if it's shown upside down or sideways. Curious to read what you think. |
Yeah I was considering adding something in immich to basically always use the rotation from exif if available. |
That's really great. Looking forward to it! Thanks in advance. |
From what I understand, rotation is handled as a HEIF transformation, so the EXIF orientation is supposed to just be informational. If you rotate based on the tag, you'll have double rotated the image. I think the issue in this case is that the image has an EXIF tag, but (incorrectly) doesn't have a transformation to rotate it. |
I'm having a very similar issue, in the app it seems to recognize the EXIF orientation and it correctly orients the picture. But on the web interface it does not, even when rotated in the app |
KDE Gwenview, GIMP displays same picture incorrectly. |
The bug
Backup photos to my private immich server (which is running on Unraid in the community Immich docker) don't keep their orientations compared to how they are displayed in the Immich app.

In the iOS Immich app, all pictures show in the right orientation.
On the web UI though, most photos are not shown in the same way:

I've uploaded the photos through a Cloudflared tunnel from my iPhone to my server. As far as I know this is an encrypted tunnel and no metadata is stripped.
I have run the extract metadata post upload but that didn't help.
Thanks for any ideas. I'd love to help troubleshoot this but some info below is lacking because of limited knowledge of docker. (the reason I use Unraid ;-))
The OS that Immich Server is running on
Unraid 6.12.9
Version of Immich Server
1.100.0
Version of Immich Mobile App
1.100.0 build 146
Platform with the issue
Your docker-compose.yml content
I have no idea where to find this info in Unraid. If someone can help me locate it I'll post it. Thanks.
Your .env content
Reproduction steps
1.start a backup from iOS app 2.view images in Immich server
Additional information
No response
The text was updated successfully, but these errors were encountered: