commit | bafdbbacf5dfec4644754a62bb48604c0c20274f | [log] [tgz] |
---|---|---|
author | cristy <urban-warrior@git.imagemagick.org> | Wed Jun 20 11:50:57 2012 +0000 |
committer | cristy <urban-warrior@git.imagemagick.org> | Wed Jun 20 11:50:57 2012 +0000 |
tree | 44fdb44efc87da95ba69ed189af47589d87107f5 | |
parent | 9cd32fba85a8b26aa2fd7d2fb7a8af792656b792 [diff] [blame] |
diff --git a/coders/gradient.c b/coders/gradient.c index f6895bf..c4e09f6 100644 --- a/coders/gradient.c +++ b/coders/gradient.c
@@ -140,6 +140,8 @@ (void) GradientImage(image,LocaleCompare(image_info->magick,"GRADIENT") == 0 ? LinearGradient : RadialGradient,PadSpread,&start_color,&stop_color, exception); + if (IssRGBColorspace(image->colorspace) != MagickFalse) + (void) SetImageColorspace(image,RGBColorspace,exception); return(GetFirstImageInList(image)); }