From 98f7b8da26cd7350ed305566264f5584ba84e94f Mon Sep 17 00:00:00 2001 From: Cristy Date: Thu, 24 Aug 2017 19:36:19 -0400 Subject: [PATCH] ... --- MagickCore/channel.c | 4 ++++ 1 file changed, 4 insertions(+) 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. */ -- 2.40.0