XnViewMP use old jxl library - JXL files created with version 0.3.2 or newer could not be opened

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

Moderator: Dreamer

User avatar
masterjp
Posts: 241
Joined: Fri Feb 13, 2009 4:37 pm
Location: Duesseldorf (Germany)

XnViewMP use old jxl library - JXL files created with version 0.3.2 or newer could not be opened

Post by masterjp »

I converted some jpg files to jxl files for testing the efficiency of JPEG XL.
The following conversion tool (Ultra7z-Images-photos-to-jpeg-xl) use a newer JPEG XL library (version 0.3.2) and it is impossible to open the files with XnView MP 0.98.5. I tested ImageMagick viewer to open the JXL files and it has no problems with the JXL files.

Internet site to conversion tool:
https://free-portable.com/ultra7z-image ... -portable/

Is it possible to update the JXL library of XnViewMP to the lastest 0.3.7 version?
PC: Intel 8700k + Asus Z370-F + 16 GB RAM G.Skill
OS: Windows 10 Pro x64 (latest updates) | XN-View (latest stable version) |XnViewMP (latest stable version) | XnConvert (latest) | Adobe Photoshop Elements 2022 & Elements XXL 9
User avatar
xnview
Author of XnView
Posts: 36812
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: XnViewMP use old jxl library - JXL files created with version 0.3.2 or newer could not be opened

Post by xnview »

I have no problem with jxl files created by lastest version, could you send me one?
Pierre.
User avatar
masterjp
Posts: 241
Joined: Fri Feb 13, 2009 4:37 pm
Location: Duesseldorf (Germany)

Re: XnViewMP use old jxl library - JXL files created with version 0.3.2 or newer could not be opened

Post by masterjp »

Here you have the original image file (jpg), which I converted with Ultra7z JXL converter to jxl format (version 0.3.2).
I can open the file in xnviewmp, but I see a black picture with green and other coloured bars.

I tried to open the jxl file with ImageMagick (latest version - https://imagemagick.org/index.php), which use the latest jxl library (0.3.7) and the image file is displayed correctly.

So I though it is a problem of an older jxl import library (0.3.x) in XnViewMP.

At gitlab I could find some informations about the latest changes:
https://gitlab.com/wg1/jpeg-xl/-/releases
PC: Intel 8700k + Asus Z370-F + 16 GB RAM G.Skill
OS: Windows 10 Pro x64 (latest updates) | XN-View (latest stable version) |XnViewMP (latest stable version) | XnConvert (latest) | Adobe Photoshop Elements 2022 & Elements XXL 9
User avatar
xnview
Author of XnView
Posts: 36812
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: XnViewMP use old jxl library - JXL files created with version 0.3.2 or newer could not be opened

Post by xnview »

i've sent you a PM
Pierre.
User avatar
masterjp
Posts: 241
Joined: Fri Feb 13, 2009 4:37 pm
Location: Duesseldorf (Germany)

Re: XnViewMP use old jxl library - JXL files created with version 0.3.2 or newer could not be opened

Post by masterjp »

The new library works great, but there are still a few unpleasant side effects.

I have converted about 6,000 small JPG files (up to 2048 pixels) into JXL format. When XnViewMP read the folder in browser view, the program will need a lot of RAM! It apparently does not free the used memory after reading a single file! After reading about 3,000 or more image files, the RAM consumption of XnViewMP is 10 GB. That is a lot.

Maybe you have an idea?
PC: Intel 8700k + Asus Z370-F + 16 GB RAM G.Skill
OS: Windows 10 Pro x64 (latest updates) | XN-View (latest stable version) |XnViewMP (latest stable version) | XnConvert (latest) | Adobe Photoshop Elements 2022 & Elements XXL 9
User avatar
masterjp
Posts: 241
Joined: Fri Feb 13, 2009 4:37 pm
Location: Duesseldorf (Germany)

Re: XnViewMP use old jxl library - JXL files created with version 0.3.2 or newer could not be opened

Post by masterjp »

The latest JPEG XL library 0.50 was released.

All versions of the library does not contain the whole features, which will be supported.
The decoding library is at an early stage. I think here is the reason for random decoding problems in XnViewMP.
We still have to be patient, until all features are completely supported and work without problems.

Changelog of JPEG XL 0.50:
https://gitlab.com/wg1/jpeg-xl/-/blob/main/CHANGELOG.md
PC: Intel 8700k + Asus Z370-F + 16 GB RAM G.Skill
OS: Windows 10 Pro x64 (latest updates) | XN-View (latest stable version) |XnViewMP (latest stable version) | XnConvert (latest) | Adobe Photoshop Elements 2022 & Elements XXL 9
User avatar
xnview
Author of XnView
Posts: 36812
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: XnViewMP use old jxl library - JXL files created with version 0.3.2 or newer could not be opened

Post by xnview »

masterjp wrote: Wed Jul 28, 2021 6:21 pm The latest JPEG XL library 0.50 was released.
ok i'll update it
Pierre.
User avatar
masterjp
Posts: 241
Joined: Fri Feb 13, 2009 4:37 pm
Location: Duesseldorf (Germany)

Re: XnViewMP use old jxl library - JXL files created with version 0.3.2 or newer could not be opened

Post by masterjp »

Fantastic! Thank you.
PC: Intel 8700k + Asus Z370-F + 16 GB RAM G.Skill
OS: Windows 10 Pro x64 (latest updates) | XN-View (latest stable version) |XnViewMP (latest stable version) | XnConvert (latest) | Adobe Photoshop Elements 2022 & Elements XXL 9