immich icon indicating copy to clipboard operation
immich copied to clipboard

In public shared galleries of heic images, zoomed images don't work in browser on iPhone

Open Janhouse opened this issue 1 year ago • 1 comments

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

  1. Create public shared gallery with heic format images in it
  2. Open it on iPhone web browser or use developer tools to set iPhone user agent
  3. Open the gallery
  4. Open the image
  5. Zoom image - ERROR appears.

Janhouse avatar Oct 19 '24 17:10 Janhouse

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 avatar Oct 19 '24 18:10 Janhouse

@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?

danieldietzler avatar Apr 01 '25 19:04 danieldietzler

It's relevant to the extent that HEIC originals should be able to load in Safari iOS.

mertalev avatar Apr 01 '25 20:04 mertalev

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

jrasm91 avatar Aug 26 '25 04:08 jrasm91