From: cristy Date: Thu, 24 May 2012 14:48:37 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~5538 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1d31828e54e869a4efb7d9963a36c084f69090d9;p=imagemagick --- diff --git a/MagickCore/enhance.c b/MagickCore/enhance.c index f912f0a47..e3884effe 100644 --- a/MagickCore/enhance.c +++ b/MagickCore/enhance.c @@ -2218,6 +2218,8 @@ MagickExport MagickBooleanType LevelImage(Image *image,const double black_point, assert(image->signature == MagickSignature); if (image->debug != MagickFalse) (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",image->filename); + if (IsGrayColorspace(image->colorspace) != MagickFalse) + (void) SetImageColorspace(image,sRGBColorspace,exception); if (image->storage_class == PseudoClass) #if defined(MAGICKCORE_OPENMP_SUPPORT) #pragma omp parallel for schedule(static,4) shared(progress,status) \