modules: hardcode the CMYK selector's conversion parameters
Always use intent=PERCEPTUAL and bpc=TRUE, taking the settings from the global GimpColorConfig is wrong.
This commit is contained in:
@ -398,25 +398,20 @@ colorsel_cmyk_config_changed (ColorselCmyk *module)
|
|||||||
gimp_color_profile_get_summary (cmyk_profile),
|
gimp_color_profile_get_summary (cmyk_profile),
|
||||||
NULL);
|
NULL);
|
||||||
|
|
||||||
if (config->display_intent ==
|
|
||||||
GIMP_COLOR_RENDERING_INTENT_RELATIVE_COLORIMETRIC)
|
|
||||||
{
|
|
||||||
flags |= GIMP_COLOR_TRANSFORM_FLAGS_BLACK_POINT_COMPENSATION;
|
|
||||||
}
|
|
||||||
|
|
||||||
flags |= GIMP_COLOR_TRANSFORM_FLAGS_NOOPTIMIZE;
|
flags |= GIMP_COLOR_TRANSFORM_FLAGS_NOOPTIMIZE;
|
||||||
|
flags |= GIMP_COLOR_TRANSFORM_FLAGS_BLACK_POINT_COMPENSATION;
|
||||||
|
|
||||||
module->rgb2cmyk = gimp_color_transform_new (rgb_profile,
|
module->rgb2cmyk = gimp_color_transform_new (rgb_profile,
|
||||||
babl_format ("R'G'B' double"),
|
babl_format ("R'G'B' double"),
|
||||||
cmyk_profile,
|
cmyk_profile,
|
||||||
babl_format ("CMYK double"),
|
babl_format ("CMYK double"),
|
||||||
config->display_intent,
|
GIMP_COLOR_RENDERING_INTENT_PERCEPTUAL,
|
||||||
flags);
|
flags);
|
||||||
module->cmyk2rgb = gimp_color_transform_new (cmyk_profile,
|
module->cmyk2rgb = gimp_color_transform_new (cmyk_profile,
|
||||||
babl_format ("CMYK double"),
|
babl_format ("CMYK double"),
|
||||||
rgb_profile,
|
rgb_profile,
|
||||||
babl_format ("R'G'B' double"),
|
babl_format ("R'G'B' double"),
|
||||||
config->display_intent,
|
GIMP_COLOR_RENDERING_INTENT_PERCEPTUAL,
|
||||||
flags);
|
flags);
|
||||||
|
|
||||||
out:
|
out:
|
||||||
|
Reference in New Issue
Block a user