From: Cristy Date: Fri, 3 Feb 2017 16:53:17 +0000 (-0500) Subject: ... X-Git-Tag: 7.0.4-7~6 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a4075211e70222a0d0d960188e15d051984c54f7;p=imagemagick ... --- diff --git a/MagickCore/channel.c b/MagickCore/channel.c index 514467a21..0f165e0b0 100644 --- a/MagickCore/channel.c +++ b/MagickCore/channel.c @@ -281,8 +281,6 @@ MagickExport Image *ChannelFxImage(const Image *image,const char *expression, *canvas; (void) SetPixelChannelMask(destination_image,channel_mask); - if ((channel_op == ExtractChannelOp) && (channels == 1)) - (void) SetImageColorspace(destination_image,GRAYColorspace,exception); canvas=CloneImage(source_image,0,0,MagickTrue,exception); if (canvas == (Image *) NULL) { @@ -380,9 +378,6 @@ MagickExport Image *ChannelFxImage(const Image *image,const char *expression, break; } channel_mask=(ChannelType) (channel_mask | ParseChannelOption(token)); - if (((channels >= 1) || (destination_channel >= 1)) && - (IsGrayColorspace(destination_image->colorspace) != MagickFalse)) - (void) SetImageColorspace(destination_image,sRGBColorspace,exception); GetNextToken(p,&p,MagickPathExtent,token); break; } @@ -425,8 +420,6 @@ MagickExport Image *ChannelFxImage(const Image *image,const char *expression, break; } (void) SetPixelChannelMask(destination_image,channel_mask); - if ((channel_op == ExtractChannelOp) && (channels == 1)) - (void) SetImageColorspace(destination_image,GRAYColorspace,exception); return(GetFirstImageInList(destination_image)); }