From: cristy Date: Fri, 18 May 2012 12:06:35 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~5575 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=71aac54efeba0861ac223132b64262522e3b63a8;p=imagemagick --- diff --git a/MagickCore/fx.c b/MagickCore/fx.c index 813e36edf..bf4b595a1 100644 --- a/MagickCore/fx.c +++ b/MagickCore/fx.c @@ -5283,6 +5283,9 @@ MagickExport Image *TintImage(const Image *image,const char *blend, tint_image=DestroyImage(tint_image); return((Image *) NULL); } + if ((IsGrayColorspace(image->colorspace) != MagickFalse) && + (IsPixelInfoGray(tint) == MagickFalse)) + (void) SetImageColorspace(tint_image,sRGBColorspace,exception); if (blend == (const char *) NULL) return(tint_image); /*