From: cristy Date: Fri, 8 Feb 2013 18:41:18 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~4276 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3a3b9964fecf4c9afe3e82fca663db591d691b44;p=imagemagick --- diff --git a/MagickCore/threshold.c b/MagickCore/threshold.c index cb313b201..6480605df 100644 --- a/MagickCore/threshold.c +++ b/MagickCore/threshold.c @@ -401,6 +401,8 @@ MagickExport MagickBooleanType BilevelImage(Image *image,const double threshold, (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",image->filename); if (SetImageStorageClass(image,DirectClass,exception) == MagickFalse) return(MagickFalse); + if (IsGrayColorspace(image->colorspace) != MagickFalse) + (void) TransformImageColorspace(image,RGBColorspace,exception); /* Bilevel threshold image. */