[gimp] modules: hardcode the CMYK selector's conversion parameters



commit 2e9733859cd32cdda6244a7a0e0dbb5a0ebbdd9d
Author: Michael Natterer <mitch gimp org>
Date:   Sun Jun 5 21:30:51 2016 +0200

    modules: hardcode the CMYK selector's conversion parameters
    
    Always use intent=PERCEPTUAL and bpc=TRUE, taking the settings from
    the global GimpColorConfig is wrong.

 modules/color-selector-cmyk.c |   11 +++--------
 1 files changed, 3 insertions(+), 8 deletions(-)
---
diff --git a/modules/color-selector-cmyk.c b/modules/color-selector-cmyk.c
index 821f404..72897a5 100644
--- a/modules/color-selector-cmyk.c
+++ b/modules/color-selector-cmyk.c
@@ -398,25 +398,20 @@ colorsel_cmyk_config_changed (ColorselCmyk *module)
                            gimp_color_profile_get_summary (cmyk_profile),
                            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_BLACK_POINT_COMPENSATION;
 
   module->rgb2cmyk = gimp_color_transform_new (rgb_profile,
                                                babl_format ("R'G'B' double"),
                                                cmyk_profile,
                                                babl_format ("CMYK double"),
-                                               config->display_intent,
+                                               GIMP_COLOR_RENDERING_INTENT_PERCEPTUAL,
                                                flags);
   module->cmyk2rgb = gimp_color_transform_new (cmyk_profile,
                                                babl_format ("CMYK double"),
                                                rgb_profile,
                                                babl_format ("R'G'B' double"),
-                                               config->display_intent,
+                                               GIMP_COLOR_RENDERING_INTENT_PERCEPTUAL,
                                                flags);
 
  out:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]