When converting TIFF lossy compression to JXL format,can not embed the ICC profile.

Author: Ki-GenesisCreated Sep 25, 2026Updated Sep 27, 2026

ImageMagick version

7.1.2-31

Operating system

Windows

Operating system, version and so on

Windows 7 x64 Service Pack 1

Description

I used a scanner to scan some images and saved them in uncompressed TIFF format. I want to convert them into JXL format – one copy in lossless JXL format for archiving, and another copy in lossy JXL format for distribution. And embed the scanner’s.icm color profile by using -profile command

However, I found that when ImageMagick uses lossy compression(distance 1 effort 5), the ICC configuration file is not embedded. But it can be embedded properly in the lossless compression mode(distance 0 effort 3). Therefore, I would like to report this issue.

Steps to Reproduce

I wrote two bat programs, which are run separately:

@echo off for /r %%f in (*.tif) do "F:\T1\ImageMagick-7.1.2-31-portable-Q8-x64\magick.exe" "%%f" -define jxl:distance=0.0 -define jxl:effort=3 -profile C:\Windows\System32\spool\drivers\color\EPSON_V37_SIPC_48Bit_300_LAB_UH.icm "%%~nf.jxl" pause

for lossless

@echo off for /r %%f in (*.tif) do "F:\T1\ImageMagick-7.1.2-31-portable-Q8-x64\magick.exe" "%%f" -define jxl:distance=1.0 -define jxl:effort=5 -profile C:\Windows\System32\spool\drivers\color\EPSON_V37_SIPC_48Bit_300_LAB_UH.icm "%%~nf.jxl" pause

for lossy

when convert succes,then both display: system cannot write to the specified device

But both jxl file can be opened normally.lossless succed embed icc profile,but lossy faild.

Images

ImageImage