From: cristy Date: Thu, 24 May 2012 14:26:01 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~5539 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=384a5b06dd903aa5d52c042a572b8119405446b7;p=imagemagick --- diff --git a/MagickCore/pixel-accessor.h b/MagickCore/pixel-accessor.h index 78d9bcc31..44fa9f22d 100644 --- a/MagickCore/pixel-accessor.h +++ b/MagickCore/pixel-accessor.h @@ -436,6 +436,9 @@ static inline MagickBooleanType IsPixelMonochrome(const Image *restrict image, static inline MagickBooleanType IsPixelInfoGray( const PixelInfo *restrict pixel_info) { + if ((IsGrayColorspace(pixel_info->colorspace) == MagickFalse) && + (IsRGBColorspace(pixel_info->colorspace) == MagickFalse)) + return(MagickFalse); #if !defined(MAGICKCORE_HDRI_SUPPORT) if ((pixel_info->red == pixel_info->green) && (pixel_info->green == pixel_info->blue))