[gimp/pippin/linear-is-the-new-black: 8/11] app: do color management before dither



commit 48de9742d0b109965123b4ba161974a033c12947
Author: Øyvind Kolås <pippin gimp org>
Date:   Fri Jan 20 19:27:49 2017 +0100

    app: do color management before dither

 app/file/file-open.c |   14 ++++++++++----
 1 files changed, 10 insertions(+), 4 deletions(-)
---
diff --git a/app/file/file-open.c b/app/file/file-open.c
index 388ca90..441d57b 100644
--- a/app/file/file-open.c
+++ b/app/file/file-open.c
@@ -289,6 +289,10 @@ file_open_image (Gimp                *gimp,
                                                GEGL_DITHER_NONE,
                                                progress);
 
+          gimp_image_import_color_profile (image, context, progress,
+                                           run_mode == GIMP_RUN_INTERACTIVE ?
+                                           TRUE : FALSE);
+
           if (old_precision == GIMP_PRECISION_U8_GAMMA)
           {
             GeglNode *ditherer = gegl_node_new_child (NULL,
@@ -321,10 +325,12 @@ file_open_image (Gimp                *gimp,
               }
           }
         }
-
-      gimp_image_import_color_profile (image, context, progress,
-                                       run_mode == GIMP_RUN_INTERACTIVE ?
-                                       TRUE : FALSE);
+      else
+      {
+        gimp_image_import_color_profile (image, context, progress,
+                                         run_mode == GIMP_RUN_INTERACTIVE ?
+                                         TRUE : FALSE);
+      }
 
       if (file_open_file_proc_is_import (file_proc))
         {


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