Replies: 3 comments
-
Hi, enabling "raw" support in config skip all the processing of such images, this is to allow to upload files like zip, pdf etc. However what is not the expected behaviour, is the broken image in the middle. That needs to be fixed. |
Beta Was this translation helpful? Give feedback.
-
Thanks for your answer. The interesting thing is that during import of the HEIC image, thumb and medium size images are generated. So it would make sense imho, to display them also in the gallery. I think a small change here could solve this: Basically, adding the same check if the medium size preview exists to the const imageViewMode = computed(() => {
if (photo.value?.precomputed.is_video) {
return 0;
}
if (photo.value?.precomputed.is_raw) {
if (photo.value?.size_variants.medium !== null) {
return 2;
}
return 1;
}
if (!photo.value?.precomputed.is_livephoto) {
if (photo.value?.size_variants.medium !== null) {
return 2;
}
return 3;
}
if (photo.value?.size_variants.medium !== null) {
return 4;
}
return 5;
}); I am no web developer, so I do not have the local dev setup installed to actually test the change, but I tried to directly modify it in Chrome and the image is displayed correctly. I am happy to create a PR if this helps. |
Beta Was this translation helpful? Give feedback.
-
Thanks for merging it already. 🙌 |
Beta Was this translation helpful? Give feedback.
-
Lychee version
v6.0.1
Which PHP version are you using?
PHP 8.3
Detailed description of the problem
I have add .heic files as raw image format in the settings. When I upload a file via the web interface, it gets processed successfully. I can see the preview image in the album, but when I click on it, it just shows a broken image in Safari.
Steps to reproduce the issue
Diagnostics [REQUIRED]
Browser & System [REQUIRED]
Linux a2e46 5.10.0-32-amd64 #1 SMP Debian 5.10.223-1 (2024-08-10) x86_64 GNU/Linux
MacOS Safari as browser.
Please confirm (incomplete submissions will not be addressed)
Beta Was this translation helpful? Give feedback.
All reactions