]> granicus.if.org Git - imagemagick/commitdiff
...
authorCristy <urban-warrior@imagemagick.org>
Thu, 2 Feb 2017 11:01:45 +0000 (06:01 -0500)
committerCristy <urban-warrior@imagemagick.org>
Thu, 2 Feb 2017 11:01:45 +0000 (06:01 -0500)
MagickCore/pixel.c

index c54b087d197aed2b04104d9b65ed0e17da53632d..dc101d9cce93b72c43ead8ddb87ac4b2e979f050 100644 (file)
@@ -4429,7 +4429,8 @@ MagickExport void InitializePixelChannelMap(Image *image)
   if (image->alpha_trait != UndefinedPixelTrait)
     trait=(PixelTrait) (trait | BlendPixelTrait);
   n=0;
-  if (image->colorspace == GRAYColorspace)
+  if ((image->colorspace == GRAYColorspace) ||
+      (image->colorspace == UndefinedColorspace))
     {
       SetPixelChannelAttributes(image,BluePixelChannel,trait,n);
       SetPixelChannelAttributes(image,GreenPixelChannel,trait,n);