]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Thu, 24 May 2012 14:48:37 +0000 (14:48 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Thu, 24 May 2012 14:48:37 +0000 (14:48 +0000)
MagickCore/enhance.c

index f912f0a47ad39eb8148ec84d5e624bf95c131778..e3884effe83996ad6b563dc362f0106814689e80 100644 (file)
@@ -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) \