JXL export always strips Color Profile

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

Moderators: helmut, XnTriq, xnview, Dreamer

Post Reply
rotbus19
Posts: 81
Joined: Sat Feb 17, 2024 11:47 am

JXL export always strips Color Profile

Post by rotbus19 »

Export... JXL always strips embedded Color Profile causing a color shift in the image. cjxl has an option to keep the color profile:

Code: Select all

 
 -C K, --modular_colorspace=K
    Color transform: -1 = default (try several per group, depending
    on effort), 0 = RGB (none), 1-41 = fixed RCT (6 = YCoCg).
    
Could this option be exposed so we can export to JXL and keep Color Profile?


Note - if anyone wants an easy way to convert to JXL and keep Color Profile - https://github.com/JacobDev1/xl-converter
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: JXL export always strips Color Profile

Post by xnview »

with 1.6.5?
Pierre.
rotbus19
Posts: 81
Joined: Sat Feb 17, 2024 11:47 am

Re: JXL export always strips Color Profile

Post by rotbus19 »

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

Re: JXL export always strips Color Profile

Post by xnview »

if source image has color profile, JXL will have it.
test.zip
(3.29 KiB) Downloaded 62 times
Pierre.
User avatar
user0
XnThusiast
Posts: 2414
Joined: Sat May 09, 2015 9:37 am

Re: JXL export always strips Color Profile

Post by user0 »

1.8.8
could not delete Color profile from loaded image

to reproduce
1. open test image in Viewer
test_img_color_profile.zip
(259 Bytes) Downloaded 171 times

issue A
2. Clean metadata (Metadata menu)
- check ICC profile
- press OK
3. press Ctrl+S to resave JXL
image still has color profile

issue B
2. goto Settings > Write
- uncheck Keep ICC profile
3. press Ctrl+S to resave JXL
image still has color profile

expected behaviour
guess these 2 approaches should be legit ways to remove metadata from images
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: JXL export always strips Color Profile

Post by xnview »

libJXL add a profile when saving
Pierre.
Post Reply