JXL Embedded ICC profile is not detected correctly.

Bugs which are supposed to be fixed in the next test version (not available yet)

Moderators: XnTriq, helmut, xnview, Dreamer

bouncyball
Posts: 4
Joined: Fri Mar 08, 2024 5:26 pm

JXL Embedded ICC profile is not detected correctly.

Post by bouncyball »

Hello everyone,

Since version 1.6.2 JXL Embedded ICC profile is not detected correctly.

Jpeg XL has builtin profile naming. For example RGB_D65_DCI_Per_SRG means: color is RGB, WB is D65, Color primaries are DCI-P3, Intent is Perceptual and Transfer Function is sRGB. Rec2020 is coded as RGB_D65_202_Per_709 and so on.

When used lossy compression internally Jpeg XL uses XYB color space. After recovering from XYB to RGB data has to be converted to original space according to ICC.

From 1.6.2 and up xnView MP assumes profile "RGB_D65_SRG_Rel_SRG" for DCI-P3 and rec2020 images and "RGB_D65_SRG_Per_SRG" for sRGB images. In fact only srgb images are treated right. Not only metadata is shown incorrectly also color management is off because of this assumption.

The last version which worked correctly was 1.6.1.

To reproduce get these sample files I provided here and try to switch color management On and Off in the settings and view the image. When CM is on colors of every image have to be correct and identical, when CM is off (and monitor is srgb) colors should be wrong for bigger color gamuts like P3 or 2020. Which is not the case after 1.6.2. Also compare file properties when viewing with v1.6.1 and later versions. Profile names are different and seams they clumped to sRGB.

Best Regards
bb
Last edited by bouncyball on Wed Apr 03, 2024 6:03 am, edited 7 times in total.
bouncyball
Posts: 4
Joined: Fri Mar 08, 2024 5:26 pm

Re: JXL Embedded ICC profile is not detected correctly.

Post by bouncyball »

BTW I saw these issue viewtopic.php?f=62&t=46279 and its solution https://www.xnview.com/mantisbt/view.ph ... 52#history.

I guess trying to make HDR images showing up ""correctly"" can be the real issue.
I have DCI-P3 D65 (aka Display P3) calibrated/profiled monitor and color management was flawless until fix in 1.6.2.

This all said for non HDR images on SDR monitor. HDRs have to be treated separately with appropriate tone mapping for particular display device: HDR or SDR.

regards
bb
bouncyball
Posts: 4
Joined: Fri Mar 08, 2024 5:26 pm

Re: JXL Embedded ICC profile is not detected correctly.

Post by bouncyball »

One more thing:

We can replace libJPEGXL.dll with one from 1.6.1. This simple trick works nicely up to 1.6.5 but not for 1.7. In this case plugin is crashing and JXL image can not be shown.

BTW Jpeg XL code of this plugin is quite old.
User avatar
xnview
Author of XnView
Posts: 43723
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: JXL Embedded ICC profile is not detected correctly.

Post by xnview »

and with 1.7.0?
Pierre.
bouncyball
Posts: 4
Joined: Fri Mar 08, 2024 5:26 pm

Re: JXL Embedded ICC profile is not detected correctly.

Post by bouncyball »

If you mean whether works all said above with 1.7 or not then answer is NO. The same problem as in 1.6.2-1.6.5. Detected profile is wrong.
but
If you mean the trick replacing the plugin only, this works up to 1.6.5 but in 1.7 plugin crashes and file is not shown.

All testing done in windows 11.
Last edited by bouncyball on Thu Apr 04, 2024 8:58 am, edited 1 time in total.
mahepeha
Posts: 1
Joined: Wed Apr 03, 2024 5:48 pm

Re: JXL Embedded ICC profile is not detected correctly.

Post by mahepeha »

Hello everyone,

also having problems with jxl-files. They're simply not shown anymore in XnView 1.7.0 64 bit- MacOSX Libformat 7.174. Exif Tool in the "Info"-panel says: "Unknown file type". This is unfortunate, because I wanted to use JPEG XL to dramatically reduce the disk space used for archival purposes. In my case, the jxl-files were created form TIFFs using Affinity Photo 2.4.1 under MacOSX 12.7.4 Monterey. Same result under 14.4.1 Sonoma. Strangely enough the *Finder* under 14.4.1 Sonoma CAN display jxl-thumbnails (though they can't be opened in Preview), and Pixelmator Pro 3.5.7 opens the files themselves no problem (though it doesn't export into the format, lol). – All in all the status with JPEG XL looks pretty messy on MacOSX.

Bestest,

Marcus
User avatar
xnview
Author of XnView
Posts: 43723
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: JXL Embedded ICC profile is not detected correctly.

Post by xnview »

:bugconfirmed: Thanks to your detailed description I can reproduce the problem.
Pierre.