[gimp] file-jpeg: Add comment about inverted CYMK values



commit ec462c16f0ee6df5109793745c62a4a0a29cf62a
Author: Mukund Sivaraman <muks banu com>
Date:   Tue Nov 4 05:43:44 2014 +0530

    file-jpeg: Add comment about inverted CYMK values

 plug-ins/file-jpeg/jpeg-load.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/plug-ins/file-jpeg/jpeg-load.c b/plug-ins/file-jpeg/jpeg-load.c
index 40aa0e6..ffb07b2 100644
--- a/plug-ins/file-jpeg/jpeg-load.c
+++ b/plug-ins/file-jpeg/jpeg-load.c
@@ -684,6 +684,10 @@ jpeg_load_cmyk_to_rgb (guchar   *buf,
       return;
     }
 
+  /* NOTE: The following code assumes inverted CYMK values, even when an
+     APP14 marker doesn't exist. This is the behavior of recent versions
+     of PhotoShop as well. */
+
   while (pixels--)
     {
       guint c = src[0];


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