Page 1 of 1

JXL export always strips Color Profile

Posted: Sun Mar 17, 2024 10:56 am
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

Re: JXL export always strips Color Profile

Posted: Sun Mar 17, 2024 1:54 pm
by xnview
with 1.6.5?

Re: JXL export always strips Color Profile

Posted: Mon Mar 18, 2024 7:45 am
by rotbus19
yeah

Re: JXL export always strips Color Profile

Posted: Wed Mar 20, 2024 9:31 am
by xnview
if source image has color profile, JXL will have it.
test.zip
(3.29 KiB) Downloaded 62 times

Re: JXL export always strips Color Profile

Posted: Mon Apr 21, 2025 3:04 pm
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

Re: JXL export always strips Color Profile

Posted: Fri Apr 25, 2025 9:46 am
by xnview
libJXL add a profile when saving