From: cristy Date: Fri, 18 May 2012 12:25:59 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~5574 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=25ee24dfa9ddb23c55f90e846d03d09d354e36bf;p=imagemagick --- diff --git a/MagickCore/enhance.c b/MagickCore/enhance.c index 91e25c49a..f912f0a47 100644 --- a/MagickCore/enhance.c +++ b/MagickCore/enhance.c @@ -2386,6 +2386,8 @@ MagickExport MagickBooleanType LevelizeImage(Image *image, 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) \