XnView: MP 0.99.7 x64
OS: Windows 11 x64
Effect: no file is saved during batch conversion when JPEG XL format is chosen
To reproduce:
1. Select a picture in XnView browser
2. Select Tools -> Batch Convert
3. Enable the "Change color depth" action on the "Actions" tab and set it to "Greyscale"
4. Select JPEG XL in the Output - Format section
5. Click the "Convert" button
Actual behaviour (bug): nothing is saved during the process, no error is reported in the log section
Expected behaviour: a converted file should be saved
XnConvert 1.95 x64 also doesn't work this way.
0.99.7: no JPEG XL output during batch conversion with greyscale filter
Moderators: XnTriq, helmut, xnview, Dreamer
-
- Posts: 4
- Joined: Sat Feb 05, 2022 8:08 am
0.99.7: no JPEG XL output during batch conversion with greyscale filter
Last edited by Wwctl on Tue Feb 08, 2022 1:31 am, edited 1 time in total.
-
- Posts: 466
- Joined: Fri Feb 13, 2009 4:37 pm
- Location: Duesseldorf, Germany
Re: 0.99.7: no JPEG XL output during batch conversion
I use the JPEG XL export often and do not have any problems.
Which settings do you use?
Which format does the input files have (8 bit / 16 bit / 32bit)?
Do you have a sample file for testing?
Which settings do you use?
Which format does the input files have (8 bit / 16 bit / 32bit)?
Do you have a sample file for testing?
PC: Intel 8700k + Asus Z370-F + 16 GB RAM G.Skill + Asus RTX 3050 OC + Samsung SSD
OS: Windows 10 Pro 64bit 22H2 |
GFX: XnViewMP 1.8.6 | XN-View 2.52.0 | XnConvert 1.104.0 | Adobe Photoshop Elements 2024 | Elements XXL 11 | Paint.Net 5.1.1
OS: Windows 10 Pro 64bit 22H2 |
GFX: XnViewMP 1.8.6 | XN-View 2.52.0 | XnConvert 1.104.0 | Adobe Photoshop Elements 2024 | Elements XXL 11 | Paint.Net 5.1.1
-
- Posts: 4
- Joined: Sat Feb 05, 2022 8:08 am
Re: 0.99.7: no JPEG XL output during batch conversion
I've tested it one more time and simple conversion of any color image is in fact working. But if I use a gray 8-bit PNG image or if I enable the grayscale filter in the actions, then the application doesn't save anything. Here is my example image, but you can use any gray 8-bit PNG i think.masterjp wrote: Mon Feb 07, 2022 12:32 pm I use the JPEG XL export often and do not have any problems.
Last edited by Wwctl on Wed Feb 09, 2022 3:38 am, edited 1 time in total.
-
- Posts: 466
- Joined: Fri Feb 13, 2009 4:37 pm
- Location: Duesseldorf, Germany
Re: 0.99.7: no JPEG XL output during batch conversion with greyscale filter
The problem is the JPEG XL encoder itselfs, which is used by XnViewMP!
The JPEG XL encoder and decoder is currently in development
and it will take some time (years) to get the final version.
So not all features are available at the moment.
Your source picture has a color depth of 8bits (= max. 256 colours).
The JPEG XL encoder does not support this format!
That is the reason why XnViewMP does not save your file in batch conversion.
To save it in JPEG XL format, you need a 24 bit colour depth.
Here is a workaround to solve it:
-----------------------------------------
Add an action 'Change color depth' to the batch conversion and choose '24 bits'
Then it works fine!
The JPEG XL encoder and decoder is currently in development
and it will take some time (years) to get the final version.
So not all features are available at the moment.
Your source picture has a color depth of 8bits (= max. 256 colours).
The JPEG XL encoder does not support this format!
That is the reason why XnViewMP does not save your file in batch conversion.
To save it in JPEG XL format, you need a 24 bit colour depth.
Here is a workaround to solve it:
-----------------------------------------
Add an action 'Change color depth' to the batch conversion and choose '24 bits'
Then it works fine!
PC: Intel 8700k + Asus Z370-F + 16 GB RAM G.Skill + Asus RTX 3050 OC + Samsung SSD
OS: Windows 10 Pro 64bit 22H2 |
GFX: XnViewMP 1.8.6 | XN-View 2.52.0 | XnConvert 1.104.0 | Adobe Photoshop Elements 2024 | Elements XXL 11 | Paint.Net 5.1.1
OS: Windows 10 Pro 64bit 22H2 |
GFX: XnViewMP 1.8.6 | XN-View 2.52.0 | XnConvert 1.104.0 | Adobe Photoshop Elements 2024 | Elements XXL 11 | Paint.Net 5.1.1
-
- Posts: 4
- Joined: Sat Feb 05, 2022 8:08 am
Re: 0.99.7: no JPEG XL output during batch conversion with greyscale filter
I don't think so, because the reference JXL encoder is able to deal with this image:masterjp wrote: Tue Feb 08, 2022 6:00 pm The problem is the JPEG XL encoder itselfs, which is used by XnViewMP!
You do not have the required permissions to view the files attached to this post.
-
- Author of XnView
- Posts: 45500
- Joined: Mon Oct 13, 2003 7:31 am
- Location: France
Re: 0.99.7: no JPEG XL output during batch conversion with greyscale filter

Pierre.
-
- Author of XnView
- Posts: 45500
- Joined: Mon Oct 13, 2003 7:31 am
- Location: France
Re: 0.99.7: no JPEG XL output during batch conversion with greyscale filter
This problem is supposed to be fixed in XnView MP 1.00 beta. Please check and confirm the bug fix here.
Pierre.
-
- Posts: 4
- Joined: Tue Apr 12, 2022 10:48 pm
Re: 0.99.7: no JPEG XL output during batch conversion with greyscale filter
[2301] - Image is converted, but output is in 24-bit instead of 8-bit greyscale
-
- Posts: 4
- Joined: Tue Apr 12, 2022 10:48 pm
Re: 0.99.7: no JPEG XL output during batch conversion with greyscale filter
Maybe JXL_TYPE_UINT8 has to be specified somewhere? https://libjxl.readthedocs.io/en/latest/api_common.html
btw I'm not a programmist so I'm not sure
btw I'm not a programmist so I'm not sure
-
- Posts: 4
- Joined: Tue Apr 12, 2022 10:48 pm
Re: 0.99.7: no JPEG XL output during batch conversion with greyscale filter
It seems that image is saved in 8-bit sRGB instead of grayscale. That's what IM identify command says.
-
- Posts: 4
- Joined: Tue Apr 12, 2022 10:48 pm
Re: 0.99.7: no JPEG XL output during batch conversion with greyscale filter
https://github.com/libjxl/libjxl/issues/1342 - It's 8-bit grayscale but incorrectly reported bit depth