1.10.5: JPEG XL RGB/RGBA mishandling

*** Please report new bugs here! ***

Moderators: xnview, Dreamer

Isaacz4
Posts: 1
Joined: Fri Apr 17, 2026 10:39 pm

1.10.5: JPEG XL RGB/RGBA mishandling

Post by Isaacz4 »

XnView: 1.10.5, 64-bit - Libformat 7.232 (Linux)
OS: Linux Mint Cinnamon 22.3, 64-bit

When viewing my JPEG XL files, I am noticing that XNViewMP is unable to handle both 32-bit RGBA JPEG XL files or 24-bit RGB JPEG XL files in the same session runtime. Seems like XNViewMP latches onto the first JPEG XL file and enforces the expected channels/encoding for all other JPEG XL files within the same session.

Effect: Improper rendering of JPEG XL files. 24-bit appear black if 32-bit was loaded first, and 32-bit is distorted and rendered incorrectly if 24-bit was loaded first. (Closing the program clears the discrepancy.)

To reproduce:

1. Close XNViewMP
2. Open 24-bit RGB JPEG XL file.
3. Open 32-bit RGBA JPEG XL file.
4. 32-bit RGBA JPEG XL file appears distorted, like monochrome scanlines.

(alternatively)

1. Close XNViewMP
2. Open 32-bit RGBA JPEG XL file.
3. Open 24-bit RGB JPEG XL file.
4. 24-bit RGB JPEG XL file appears black.

Actual behaviour (bug): 32-bit (RGBA) and 24-bit (RGB) JPEG XL files cannot be viewed correctly in the same session :bug:

Expected behaviour: XNViewMP should correctly display both RGB and RGBA JPEG XL images, regardless of load order, in the same session.
______________________________________________________
User avatar
xnview
Author of XnView
Posts: 47616
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: 1.10.5: JPEG XL RGB/RGBA mishandling

Post by xnview »

it's known issue with libjpegxl
Pierre.