From 80c222d24b987ea520d48f945ef9798a6a19d1cb Mon Sep 17 00:00:00 2001 From: Cristy Date: Sat, 7 Sep 2019 07:47:22 -0400 Subject: [PATCH] https://github.com/ImageMagick/ImageMagick/issues/1694 --- MagickCore/composite.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MagickCore/composite.c b/MagickCore/composite.c index ae3b1ba33..62fb54138 100644 --- a/MagickCore/composite.c +++ b/MagickCore/composite.c @@ -579,7 +579,7 @@ MagickExport MagickBooleanType CompositeImage(Image *image, source_image=CloneImage(composite,0,0,MagickTrue,exception); if (source_image == (const Image *) NULL) return(MagickFalse); - if (IsGrayColorspace(image->colorspace) != MagickFalse) + if (IsGrayColorspace(image->colorspace) == MagickFalse) (void) SetImageColorspace(image,sRGBColorspace,exception); (void) SetImageColorspace(source_image,image->colorspace,exception); if ((compose == OverCompositeOp) || (compose == SrcOverCompositeOp)) -- 2.40.0