immich icon indicating copy to clipboard operation
immich copied to clipboard

Poor HEIC WEB quality

Open maxwase opened this issue 1 year ago • 5 comments

The bug

For some reason image quality for the same photo differs significantly depending on its format. The issue can be seen on mobile with Prefer remote images option selected.

The OS that Immich Server is running on

6.6.19-1-MANJARO

Version of Immich Server

1.102.2

Version of Immich Mobile App

1.101.0 build.131

Platform with the issue

  • [ ] Server
  • [X] Web
  • [X] Mobile

Your docker-compose.yml content

https://github.com/immich-app/immich/blob/e72e41a7aa5374ce763b7b779aed65f2ce761e01/docker/docker-compose.yml

Your .env content

https://github.com/immich-app/immich/blob/e72e41a7aa5374ce763b7b779aed65f2ce761e01/docker/example.env

Reproduction steps

1. Take a photo in HEIC
2. Convert it using `heif-convert photo.HEIC photo.JPG`
3. Upload both photos to Immich
4. See poor HEIC quality compared to JPEG

Relevant log output

No response

Additional information

Web screenshots: image image

Option Display original photos does not affect

admin/system-settings?isOpen=image QUALITY=100 setting makes the situation better, however it's still much worse then the converted JPG image

maxwase avatar Apr 20 '24 20:04 maxwase

Could you share an example image?

mertalev avatar Apr 20 '24 22:04 mertalev

Also related: #8016.

mertalev avatar Apr 21 '24 04:04 mertalev

I would love to, but github does not allow such large files to be attached 😅. I suddenly remembered that I have a dropbox, decided to use it link to the source files I made a different image to compare: HEIC original, JPG original (adjusted camera settings) and JPG converted from the HEIC original

Tested in Google Chrome: image image image

maxwase avatar Apr 21 '24 10:04 maxwase

I also have the same issue. *.HEIC original image won't load on web client (Chrome v124), the preview image is displayed instead. I already turned on "Display original photos" knob on web. Immich Server 1.102.3 (docker) update: it seems Google Chrome does not support HEIC images, so I think this is expected behavior.

yydcool avatar Apr 28 '24 03:04 yydcool

Tested in Firefox: image image image

maxwase avatar Apr 28 '24 08:04 maxwase

I tested and this isn't actually a bug. It's just that HEIC isn't a web-compatible format so we never load the original, whereas we do load the original on zoom for JPG.

mertalev avatar Jun 16 '24 22:06 mertalev

Could it be possible to add HEIC support for Safari? Safari 17+ supports HEIC.

jaisinghdhaliwal avatar Jun 19 '24 01:06 jaisinghdhaliwal

Could it be possible to add HEIC support for Safari? Safari 17+ supports HEIC.

Sure, I made a PR for it.

mertalev avatar Jun 19 '24 02:06 mertalev