[gimp/goat-invasion] app: "fix" the format of the indexed component



commit 5abda92113dfd0984beb28dbe70011f7680710eb
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]