immich
immich copied to clipboard
In public shared galleries of heic images, zoomed images don't work in browser on iPhone
The bug
For some reason public galleries on iOS browser are using heic originals when zoomed in, but the iOS browser does not support heic format, so it shows error. (Tested on iPhone with Safari browser).
This is not a problem in regular timeline view, I noticed it breaking only in shared galleries.
Here is video of me reproducing the issue in Firefox using dev tools with user-agent switching:
Screencast From 2024-10-19 20-15-29.webm
Version of Immich Server
v1.118.2
Platform with the issue
- [ ] Server
- [X] Web
- [ ] Mobile
Reproduction steps
- Create public shared gallery with heic format images in it
- Open it on iPhone web browser or use developer tools to set iPhone user agent
- Open the gallery
- Open the image
- Zoom image - ERROR appears.
As @mertalev pointed out on Discord, HEIC files load in iOS browser, and I confirm that they do, so the issue could be a JS bug or something.
@Janhouse this sounds to me like it's unrelated to Immich? So this issue should be closed as there's nothing we can do about?
It's relevant to the extent that HEIC originals should be able to load in Safari iOS.
I think is most likely related to the fact that zooming in can load either the original or the biggest preview. Even if it should be able to display the the original, accessing that file requires the Allow Download option to be enabled in the shared link. Can you verify any of the following?
- In the devtools network request there is a 403 when the image fails to load
- Which api requests are being used when you zoom in the success and failure cases
- If anything changes when you turn on the enable download option on the shared link