From: cristy Date: Tue, 7 Apr 2015 11:19:45 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~1126 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d2ad935bc8989536451ebb9d065f70c2aac26aec;p=imagemagick --- diff --git a/MagickCore/attribute.c b/MagickCore/attribute.c index 047435bd6..8ae173546 100644 --- a/MagickCore/attribute.c +++ b/MagickCore/attribute.c @@ -1210,11 +1210,10 @@ MagickExport MagickBooleanType SetImageType(Image *image,const ImageType type, { case BilevelType: { - if (SetImageGray(image,exception) == MagickFalse) - status=TransformImageColorspace(image,GRAYColorspace,exception); - (void) NormalizeImage(image,exception); if (SetImageMonochrome(image,exception) == MagickFalse) { + status=TransformImageColorspace(image,GRAYColorspace,exception); + (void) NormalizeImage(image,exception); quantize_info=AcquireQuantizeInfo(image_info); quantize_info->number_colors=2; quantize_info->colorspace=GRAYColorspace;