[gimp] plug-ins: always convert CMYK JPEGs to sRGB, not to the configured RGB



commit 8c6fd714b56bb0c03475c92cd68087bc0dbc8ff9
Author: Michael Natterer <mitch gimp org>
Date:   Thu Aug 20 11:41:05 2015 +0200

    plug-ins: always convert CMYK JPEGs to sRGB, not to the configured RGB

 plug-ins/file-jpeg/jpeg-load.c |    8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/plug-ins/file-jpeg/jpeg-load.c b/plug-ins/file-jpeg/jpeg-load.c
index 28515c5..d8ec8a0 100644
--- a/plug-ins/file-jpeg/jpeg-load.c
+++ b/plug-ins/file-jpeg/jpeg-load.c
@@ -630,12 +630,8 @@ jpeg_load_cmyk_transform (guint8 *profile_data,
       return NULL;
     }
 
-  /*  try to load the RGB profile configured in the prefs  */
-  rgb_profile = gimp_color_config_get_rgb_color_profile (config, NULL);
-
-  /*  make the real sRGB profile as a fallback  */
-  if (! rgb_profile)
-    rgb_profile = gimp_color_profile_new_srgb ();
+  /*  always convert to sRGB  */
+  rgb_profile = gimp_color_profile_new_srgb ();
 
   cmyk_lcms = gimp_color_profile_get_lcms_profile (cmyk_profile);
   rgb_lcms  = gimp_color_profile_get_lcms_profile (rgb_profile);


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