From 1d31828e54e869a4efb7d9963a36c084f69090d9 Mon Sep 17 00:00:00 2001 From: cristy Date: Thu, 24 May 2012 14:48:37 +0000 Subject: [PATCH] --- MagickCore/enhance.c | 2 ++ 1 file changed, 2 insertions(+) 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) \ -- 2.40.0