JPEG-XL save dialog wrong color

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

Moderators: helmut, XnTriq, xnview, Dreamer

Post Reply
wupi
Posts: 3
Joined: Wed Dec 14, 2022 5:41 pm

JPEG-XL save dialog wrong color

Post by wupi »

XnView: MP Windows Version 1.4.0 64bits
OS: Windows 10 64bit

When i save a JPEG-XL with the save dialog, i get a slightly wrong colored photo, saved with batch it is normal.

Effect: wrong colors

Here a the sample photos.

https://0x777.de/xnview/
User avatar
masterjp
Posts: 471
Joined: Fri Feb 13, 2009 4:37 pm
Location: Duesseldorf, Germany

Re: JPEG-XL save dialog wrong color

Post by masterjp »

Hello Wupi,

I checked your sample image and your saved jxl files.
Generally you are right, that there are small different colors in the saved jxl picture from 'save as' dialog.
XnviewMP is not the cause of your problem. The jpeg xl library for saving or your compression settings are the reason!

I compared your both jxl files and detect a small file size difference.
You used different compression settings! In most cases the compression effort (=efficiency) is the problem.

All dialogs in XnviewMP (batch conversion, file export and save as) have their own jpeg xl settings for saving!

Reason for different colors:
JPEG XL is a new picture format, which use other color systems (RGB, HSL, etc.) than other picture formats (jpeg, etc.).
So it is possible, that your saved jxl picture get slightly different colors than your original jpeg file.
You will get this behaviour, if you use a lower compression effort (possible levels 1-9) for saving your jxl file.
I usually use level 7-9 for good results to prevent this color problem. Level 7-9 will be not very fast, but the file size is the smallest under the same compression quality condition.
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.7 | XN-View 2.52.0 | XnConvert 1.104.0 | Adobe Photoshop Elements 2024 | Elements XXL 11 | Paint.Net 5.1.7
wupi
Posts: 3
Joined: Wed Dec 14, 2022 5:41 pm

Re: JPEG-XL save dialog wrong color

Post by wupi »

masterjp wrote: Wed Dec 14, 2022 6:57 pm You used different compression settings! In most cases the compression effort (=efficiency) is the problem.
Nope, its 7 and quality 85 on booth photos.
I tried lossless compression 7 and the colors are as expected on booth photos. They have also a different filesize. :?
The hex comparison shows two completely different files, lossless files should be identical with the same settings.
Attachments
Screenshot 2022-12-14 200814.png
User avatar
masterjp
Posts: 471
Joined: Fri Feb 13, 2009 4:37 pm
Location: Duesseldorf, Germany

Re: JPEG-XL save dialog wrong color

Post by masterjp »

I did the same test with your testfile under your conditions (Quality 85% and Effort 7).
Both files (Batch and save as) have the same filesize and there are no color changes.

The color of both files match with the original jpeg.

I think you did not use the same settings for saving.
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.7 | XN-View 2.52.0 | XnConvert 1.104.0 | Adobe Photoshop Elements 2024 | Elements XXL 11 | Paint.Net 5.1.7
wupi
Posts: 3
Joined: Wed Dec 14, 2022 5:41 pm

Re: JPEG-XL save dialog wrong color

Post by wupi »

Looks like the sRGB option alters the saved file but only when is use the save dialog.
Attachments
Screenshot 2022-12-14 232704.png
User avatar
masterjp
Posts: 471
Joined: Fri Feb 13, 2009 4:37 pm
Location: Duesseldorf, Germany

Re: JPEG-XL save dialog wrong color

Post by masterjp »

Interesting. I don't use icm profiles, because I thought Windows use them for all programs.
Is your display calibrated with a software or is it a file from your display driver?
I used an older Spyder calibration device to calibrate my display.
Maybe it is better to use the icm profile with in windows and not in XnviewMP.
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.7 | XN-View 2.52.0 | XnConvert 1.104.0 | Adobe Photoshop Elements 2024 | Elements XXL 11 | Paint.Net 5.1.7
User avatar
xnview
Author of XnView
Posts: 46252
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: JPEG-XL save dialog wrong color

Post by xnview »

When using ICC profile, you change the data of picture (edit mode)
Pierre.
Post Reply