XYB color space with JPEGLI ??

Discussions on NConvert - the command line tool for image conversion and manipulation

Moderators: helmut, xnview

Post Reply
User avatar
CreativeWorld
Posts: 146
Joined: Fri Dec 30, 2011 7:08 pm

XYB color space with JPEGLI ??

Post by CreativeWorld »

Hello,

I was wondering if it is possible to tell nconvert to use the XYB color space with JPEGLI?
I could not find any info in the help of the latest version (7.221).

By the way, XNViewMP (1.8.7) does not export any meaningful nconvert commandline (for JPEGLI).
The batch file just contains "nconvert.exe" without any command line options.

Regards
CW
User avatar
xnview
Author of XnView
Posts: 46849
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: XYB color space with JPEGLI ??

Post by xnview »

no it will be added
Pierre.
WinnieW
Posts: 45
Joined: Thu Jan 17, 2013 2:28 pm

Re: XYB color space with JPEGLI ??

Post by WinnieW »

Important fix of JPEG with XYB color profile and subsampling is in git now. XYB color subsampling was incorrect in the past.

https://github.com/google/jpegli/pull/130
User avatar
xnview
Author of XnView
Posts: 46849
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: XYB color space with JPEGLI ??

Post by xnview »

i use jpegli from jpegxl project...
Pierre.
WinnieW
Posts: 45
Joined: Thu Jan 17, 2013 2:28 pm

Re: XYB color space with JPEGLI ??

Post by WinnieW »

Ok, but there is a notice in the libjxl that further development of jpegli will happen in the jpegli repository.

https://github.com/libjxl/libjxl/blob/m ... /README.md

Maybe there will backport jpegli development to the libjxl repository.

Incorrect XYB subsampling in cjpegli hasn't been fixed in the libjxl repository, so far.
User avatar
xnview
Author of XnView
Posts: 46849
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: XYB color space with JPEGLI ??

Post by xnview »

WinnieW wrote: Wed Apr 30, 2025 9:24 am Incorrect XYB subsampling in cjpegli hasn't been fixed in the libjxl repository, so far.
changes are not yet in the main branch https://github.com/google/jpegli
Pierre.
WinnieW
Posts: 45
Joined: Thu Jan 17, 2013 2:28 pm

Re: XYB color space with JPEGLI ??

Post by WinnieW »

I noticed that.
Maybe the priority isn't high, or the developers assume that JPEG files with XYB are considered experimental and only a few people are using that coding option.
Anyway, in the meantime, until a proper bugfix is in the official code of jpegli,
a quick fix might be disabling color subsampling for writing new jpeg files when XYB is selected, because XYB with activated subsampling, esp. subsampling the Y channel of XYB, worsens the quality of the image in a visable way; and such jpegs can't be transcoded to JPEG XL either.
WinnieW
Posts: 45
Joined: Thu Jan 17, 2013 2:28 pm

Re: XYB color space with JPEGLI ??

Post by WinnieW »

A new release of libjxl is in the pipeline. It's just a matter of days.
This will also fix pending bugs in jpegli, incl. bugs related to XYB color space in jpegli.
User avatar
CreativeWorld
Posts: 146
Joined: Fri Dec 30, 2011 7:08 pm

Re: XYB color space with JPEGLI ??

Post by CreativeWorld »

WinnieW wrote: Tue Aug 12, 2025 11:41 am A new release of libjxl is in the pipeline. It's just a matter of days.
This will also fix pending bugs in jpegli, incl. bugs related to XYB color space in jpegli.
Just wanted to ask, if this JPEGLI fix has been implemented in the latest version (1.9.5), since I could not find anything in the changelog.
meteorquake
Posts: 80
Joined: Wed Sep 13, 2023 9:37 am

Re: XYB color space with JPEGLI ??

Post by meteorquake »

Yes this would be good to know what the situation/schedule is, I started using it with XYB recently and have just noticed this thread now.
However according to Gemini the bugs affected greyscale, RGBA and non-444 subsampling (i.e. subsampling), whereas I've been using RGB to XYB and 4-4-4 which it states is okay.
WinnieW
Posts: 45
Joined: Thu Jan 17, 2013 2:28 pm

Re: XYB color space with JPEGLI ??

Post by WinnieW »

CreativeWorld wrote: Fri Oct 31, 2025 9:05 pm
WinnieW wrote: Tue Aug 12, 2025 11:41 am A new release of libjxl is in the pipeline. It's just a matter of days.
This will also fix pending bugs in jpegli, incl. bugs related to XYB color space in jpegli.
Just wanted to ask, if this JPEGLI fix has been implemented in the latest version (1.9.5), since I could not find anything in the changelog.
Still no official release of a jpegli version that include that specific bug fix. . Without a release of jpegli with proper XYB support, it can't be included in any XnView software... Otherwise, you need software and hardware support for JPG files that make use of XYB color space. XYB-JPEG are considered proprietary, atm.
I don't use it, because neither my TV nor my digital photo frames support XYB color space, only YUV.
Last edited by WinnieW on Fri Nov 07, 2025 3:51 pm, edited 4 times in total.
WinnieW
Posts: 45
Joined: Thu Jan 17, 2013 2:28 pm

Re: XYB color space with JPEGLI ??

Post by WinnieW »

* Unintentional double post deleted *
Post Reply