[Feature] JPEG XL HDR support #8284
Replies: 2 comments 21 replies
-
Thanks for providing example images! HDR images appearing darker is interesting. I can take a look at it later to see if there's anything we can do there. As for general JPEG XL support, the question isn't so much about whether Google Photos has it or if it's backup-related (immich is more than a photo backup solution at this point), but client support. Chrome (infamously) doesn't support it and I don't think the Flutter mobile app does either, although the latter can be remedied. I've been laying the groundwork for allowing generated images to be in other formats besides JPEG and WebP. The primary motivation has been for HDR AVIF, but it might be viable to add JPEG XL as a target too if we can get it working on the mobile app. |
Beta Was this translation helpful? Give feedback.
-
I'm not sure if this should be in issue instead, if so, I'll post it there as well. These AVIFs look great natively, in Safari, and in the Photos app. After uploading them to Immich, the conversion to thumbnails renders the images very flat and with a wrong black point. Exporting the AVIF to JPG using macOS's Preview looks good. I've attached a few files to showcase the differences. The AVIF file is the original file as exported by Lightroom, the preview file is the AVIF exported to JPG by Preview, and immich-thumbnail is directly downloaded from Immich. Note that the original color profile is Using ffmpeg to convert the AVIF to JPG without any options yields a very similar result to Immich's thumbnail. Using the options A correct color conversion for HDR pictures in AVIF (or JPEG XL) is crucial as they aren't simple SDR pictures with gain maps. |
Beta Was this translation helpful? Give feedback.
-
The feature
I export my developed (read: tuned/modified) DSLR pictures in JPEG XL HDR P3 from Adobe Lightroom and they appear very dark in Immich, both when using Firefox on macOS and Chrome on macOS. I have attached two samples:
Github does not support jxl files, hence I put both in a zip file.
Disclaimer 1: I know "does google photos have it?" is a criteria for Immich Feature Requests and JPEG XL support (let alone JPEG XL HDR P3) is not yet available on google photos: Google has a heated and complicated relation to JPEG XL, but it is being adopted by many big players such as Apple, Adobe, etc., hence I am confident it will be added in time to google photos as well.
Disclaimer 2: this is not a very "backup" centric feature and I understand Immich main purpose is backing up mobile photos. I do wish Apple and Google default camera apps would start to use JPEG XL HDR tomorrow, as it's awesome and it's long overdue to have large support for HDR in photos (not tone mapping) – I never understood why video had it for so long while photos where lagging. I guess there's less money to be made with photos ;)
JPEG XL HDR Test.zip
Platform
Beta Was this translation helpful? Give feedback.
All reactions