JXL export always strips Color Profile

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

Moderators: xnview, Dreamer

rotbus19
Posts: 82
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: 47412
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: JXL export always strips Color Profile

Post by xnview »

with 1.6.5?
Pierre.
rotbus19
Posts: 82
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: 47412
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: JXL export always strips Color Profile

Post by xnview »

if source image has color profile, JXL will have it.
test.zip
You do not have the required permissions to view the files attached to this post.
Pierre.
User avatar
user0
XnThusiast
Posts: 2816
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

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
You do not have the required permissions to view the files attached to this post.
User avatar
xnview
Author of XnView
Posts: 47412
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: JXL export always strips Color Profile

Post by xnview »

libJXL add a profile when saving
Pierre.