From: cristy Date: Mon, 16 Jul 2012 12:45:25 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~5255 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2b09d9eab7cb974b3b6441f745dbb388fc277561;p=imagemagick --- diff --git a/coders/gradient.c b/coders/gradient.c index d1330fb71..b0c4277c8 100644 --- a/coders/gradient.c +++ b/coders/gradient.c @@ -158,6 +158,8 @@ static Image *ReadGRADIENTImage(const ImageInfo *image_info, image=DestroyImageList(image); return((Image *) NULL); } + if (IssRGBColorspace(start_color.colorspace) != MagickFalse) + TransformImageColorspace(image,start_color.colorspace,exception); if ((start_color.matte == MagickFalse) && (stop_color.matte == MagickFalse)) (void) SetImageAlphaChannel(image,DeactivateAlphaChannel,exception); return(GetFirstImageInList(image));