[Feature] JPEG XL HDR support #8284
Replies: 7 comments 54 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.
-
FYI: it appears that iPhones will be able to shoot in JPEG XL with iOS 18 (although it's just a rumor at this stage and it probably will not be the default). I really hope this tips the scale and we finally move toward a "new jpeg" (royality free, omnipresent, omnicompatible, backward compatible with jpeg, HDR, transparency, and much more.). I really hope the support in iPhones will get google to add jpeg xl support in Chrome, then I would say the odds would be good for jpeg xl to become the "new jpeg". Long story short: I really think this feature would make sense in Immich =) |
Beta Was this translation helpful? Give feedback.
-
I think upgrading to libjxl-dev and libjxl to 0.9 has partially fixed the issue. The JXL HDR pictures now do not appear dark in the browser, but instead they are quite dull, compared to a JPEG HDR picture. My previews are set to webp, both pictures were generated with Lightroom Classic and I'm on Immich v1.116.2. Since webp is 8bit, I don't think the issue is related to HDR rendition in a particular browser. I tested with Safari as well to be on the safe side, which suports JPEG XL HDR (tested here). I'm interested to hear if others are able to replicate this issue. [Edit] Same effect in the iOS app: jxl hdr image appears significantly duller than the jpeg hdr one. |
Beta Was this translation helpful? Give feedback.
-
Hello everyone, I've been experimenting with the sample HDR image linked above: libvips/libvips#4174 (comment) With this command:
I get: Does that look about right? I'm not sure I have the white point in the right place. I also don't see any specular highlights over 255. Is it bright enough? |
Beta Was this translation helpful? Give feedback.
-
Did something change in 117.0? I can barely see the difference between JXL HDR and JPEG HDR now. The white point seems a little different somehow, but that's it. |
Beta Was this translation helpful? Give feedback.
-
What's the current status of implementing JXL HDR support in Immich? I was waiting for normal JXL and HDR video to be supported before jumping in. At the moment I have my whole DSLR and iPhone RAW/ProRAW library exported as SDR P3 JXL's but would really love HDR support considering the native photos app in iOS 18 now fully supports these HDR photo formats. |
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