]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Wed, 27 Jun 2012 01:43:10 +0000 (01:43 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Wed, 27 Jun 2012 01:43:10 +0000 (01:43 +0000)
MagickCore/enhance.c

index d09c0ab9ffa644717b4671ec05883b64587fbabe..c3c6447bd49ca976bc667b9f128c008c0fee220f 100644 (file)
@@ -2884,6 +2884,8 @@ MagickExport MagickBooleanType ModulateImage(Image *image,const char *modulate,
     (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",image->filename);
   if (modulate == (char *) NULL)
     return(MagickFalse);
+  if (IssRGBColorspace(image->colorspace) == MagickFalse)
+    (void) TransformImageColorspace(image,sRGBColorspace,exception);
   flags=ParseGeometry(modulate,&geometry_info);
   percent_brightness=geometry_info.rho;
   percent_saturation=geometry_info.sigma;