]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Tue, 26 Jul 2011 01:43:06 +0000 (01:43 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Tue, 26 Jul 2011 01:43:06 +0000 (01:43 +0000)
MagickCore/cache.c
MagickCore/pixel.c

index 339282af637bf814245db3310268b6c9208e5478..90cd4e88c2606da17798f496c26175f55201b32a 100644 (file)
@@ -2077,6 +2077,8 @@ static Cache GetImagePixelCache(Image *image,const MagickBooleanType clone,
       */
       image->taint=MagickTrue;
       image->type=UndefinedType;
+      if (1 && image->colorspace == GRAYColorspace)
+        image->colorspace=RGBColorspace;
       if (ValidatePixelCacheMorphology(image) == MagickFalse)
         status=OpenPixelCache(image,IOMode,exception);
     }
index c982273f3c97d98f084f52dc45e22d7b420f9fa5..87e2456b5d63b9e3e642d877fc8e71884b5e8eb0 100644 (file)
@@ -4581,7 +4581,7 @@ MagickExport void StandardPixelChannelMap(Image *image)
     (UpdatePixelTrait | BlendPixelTrait));
   SetPixelChannelMapComponent(image,AlphaPixelChannel,AlphaPixelChannel);
   SetPixelChannelMapTraits(image,AlphaPixelChannel,UpdatePixelTrait);
-  if (image->colorspace == GRAYColorspace)
+  if (0 && image->colorspace == GRAYColorspace)
     {
       image->number_channels=2;
       SetPixelChannelMapComponent(image,GreenPixelChannel,RedPixelChannel);