From: Cristy Date: Thu, 24 Aug 2017 23:48:30 +0000 (-0400) Subject: https://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=32484 X-Git-Tag: 7.0.7-0~69 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=73a0853ac357749b70b0cbebde64f9e6f01d6923;p=imagemagick https://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=32484 --- diff --git a/MagickCore/channel.c b/MagickCore/channel.c index c68b30568..158e23aca 100644 --- a/MagickCore/channel.c +++ b/MagickCore/channel.c @@ -733,10 +733,7 @@ MagickExport Image *SeparateImage(const Image *image, } separate_image->alpha_trait=UndefinedPixelTrait; (void) SetImageColorspace(separate_image,GRAYColorspace,exception); - if ((IsRGBColorspace(image->colorspace) != MagickFalse) || - (image->colorspace == XYZColorspace) || - (image->colorspace == xyYColorspace)) - image->gamma=1.000; + separate_image->gamma=image->gamma; /* Separate image. */