immich
immich copied to clipboard
Poor HEIC WEB quality
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:
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
Could you share an example image?
Also related: #8016.
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:
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.
Tested in Firefox:
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.
Could it be possible to add HEIC support for Safari? Safari 17+ supports HEIC.
Could it be possible to add HEIC support for Safari? Safari 17+ supports HEIC.
Sure, I made a PR for it.