r/jpegxl • u/gulbrillo • 13h ago
Added JPEG XL (gain map) support to JXR-to-AVIF converter
Windows App mainly designed to convert Star Citizen HDR screenshots in .jxr format (NVIDIA app, the Xbox Game Bar or Windows) to AVIF (with gain map) due to the wide support and small file size. A user asked about JPEG XL and I was supprised how bad the gain map support is across all ecosystems.
I added both flavors: HDR + gain map to SDR, and SDR + gain map to HDR. Although the former one is the intented way of doing things, I could not find a single viewer supporting that format.
Since JPEG XL can represent HDR images directly, the main use case for this box is not to provide an SDR-to-HDR gain map (although it can also be used for that), but an inverse HDR-to-SDR gain map that effectively represents a custom local tone mapping.
https://arxiv.org/abs/2506.05987
I tested "JPEG XL - HDR (SDR base)" with "HdrImageViewer v1.0.49" and it works fine. The "JPEG XL - HDR (HDR base)" format in my app is pretty theoretical. Maybe someone is interested in adding support to their app for the HDR + gain map format. If you do, please let me know if the format I'm outputting is actually correct. ðŸ«
Website: https://verseguide.com/tools/versehdr
Source code: https://gitlab.com/verseguide/VerseHDR
Microsoft Store: https://apps.microsoft.com/detail/9mt24rm3h5bx