[gimp] app: "fix" the format of the indexed component



commit 28c2fdc9d5c2e1858138606f196c9f7baf6a2d69
Author: Michael Natterer <mitch gimp org>
Date:   Mon Apr 30 01:22:49 2012 +0200

    app: "fix" the format of the indexed component
    
    to be "Y u8", so it at least extracts something reasonable.

 app/core/gimpimage.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/app/core/gimpimage.c b/app/core/gimpimage.c
index 8f23b7d..8ca7ecf 100644
--- a/app/core/gimpimage.c
+++ b/app/core/gimpimage.c
@@ -2126,7 +2126,8 @@ gimp_image_get_component_format (const GimpImage *image,
                                          GRAY);
 
     case GIMP_INDEXED_CHANNEL:
-      return babl_format ("Y' u8"); /* XXX: seems wrong */
+      return babl_format ("Y u8"); /* will extract grayscale, the best
+                                    * we can do here */
     }
 
   return NULL;



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