From 6a0da65e68a7d54424d57c93df1f687df78c05a3 Mon Sep 17 00:00:00 2001 From: cristy Date: Wed, 16 Oct 2013 00:48:04 +0000 Subject: [PATCH] --- coders/miff.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/coders/miff.c b/coders/miff.c index 1ff33c019..639dabe69 100644 --- a/coders/miff.c +++ b/coders/miff.c @@ -1956,17 +1956,6 @@ static MagickBooleanType WriteMIFFImage(const ImageInfo *image_info, (void) SetImageStorageClass(image,DirectClass,exception); image->depth=image->depth <= 8 ? 8UL : image->depth <= 16 ? 16UL : image->depth <= 32 ? 32UL : 64UL; - if (IsImageGray(image,exception) == MagickFalse) - { - /* - sRGB masquerading as a grayscale image? - */ - if (IsGrayColorspace(image->colorspace) != MagickFalse) - (void) SetImageColorspace(image,sRGBColorspace,exception); - } - else - if (IsGrayColorspace(image->colorspace) == MagickFalse) - (void) SetImageColorspace(image,GRAYColorspace,exception); quantum_info=AcquireQuantumInfo(image_info,image); if (quantum_info == (QuantumInfo *) NULL) ThrowWriterException(ResourceLimitError,"MemoryAllocationFailed"); -- 2.40.0