From: Cristy Date: Thu, 24 Aug 2017 23:36:19 +0000 (-0400) Subject: ... X-Git-Tag: 7.0.7-0~70 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=98f7b8da26cd7350ed305566264f5584ba84e94f;p=imagemagick ... --- diff --git a/MagickCore/channel.c b/MagickCore/channel.c index 07c15d613..c68b30568 100644 --- a/MagickCore/channel.c +++ b/MagickCore/channel.c @@ -733,6 +733,10 @@ 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. */