From bc7fdcd942f0248b398a8b086229a2531746c79e Mon Sep 17 00:00:00 2001 From: cristy Date: Wed, 27 Jun 2012 01:43:10 +0000 Subject: [PATCH] --- MagickCore/enhance.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MagickCore/enhance.c b/MagickCore/enhance.c index d09c0ab9f..c3c6447bd 100644 --- a/MagickCore/enhance.c +++ b/MagickCore/enhance.c @@ -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; -- 2.40.0