BTW, it seems that increasing the "C" value in HCL colorspace changes also the "L" value in LAB colorspace. Hence, I try to "fix" it with some channel manipulation:
Code: Select all
convert.exe -respect-parentheses input.png -set colorspace SRGB
\( -clone 0 -colorspace HCL -channel G +sigmoidal-contrast 3,66% -colorspace LAB \)
\( -clone 0 -colorspace LAB -channel Red -separate \)
\( -clone 1 -colorspace LAB -channel Green -separate \)
\( -clone 1 -colorspace LAB -channel Blue -separate \)
-delete 0,1 -channel RGB -combine -set colorspace LAB -colorspace sRGB fix_thru_lab_%d.png
Code: Select all
convert.exe -respect-parentheses input.png -set colorspace SRGB
\( -clone 0 -colorspace HCL -channel G +sigmoidal-contrast 3,66% -colorspace XYZ \)
\( -clone 1 -colorspace XYZ -channel Red -separate \)
\( -clone 0 -colorspace XYZ -channel Green -separate \)
\( -clone 1 -colorspace XYZ -channel Blue -separate \)
-delete 0,1 -channel RGB -combine -set colorspace XYZ -colorspace sRGB fix_thru_xyz_%d.png