]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Tue, 10 Feb 2015 23:10:18 +0000 (23:10 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Tue, 10 Feb 2015 23:10:18 +0000 (23:10 +0000)
MagickWand/mogrify.c
MagickWand/operation.c

index b5350c194449dcdb1c9253debb599c9ef0cf5b57..e785346ae0148240d0c1cc5b7bbffed223789c9c 100644 (file)
@@ -1734,8 +1734,8 @@ WandExport MagickBooleanType MogrifyImage(ImageInfo *image_info,const int argc,
             if (*option == '+')
               (*image)->gamma=StringToDouble(argv[i+1],(char **) NULL);
             else
-              (void) GammaImage(*image,StringToDouble(argv[i+1],
-                (char **) NULL),exception);
+              (void) GammaImage(*image,StringToDouble(argv[i+1],(char **) NULL),
+                exception);
             break;
           }
         if ((LocaleCompare("gaussian-blur",option+1) == 0) ||
index fa6352507dd187e6ded598e32244d7e035115f4a..757e5ec76608c692d0e49d53d49aa4aeb02a2af6 100644 (file)
@@ -2443,6 +2443,8 @@ static MagickBooleanType CLISimpleOperatorImage(MagickCLI *cli_wand,
           if (IfNormalOp)
             constant=PerceptibleReciprocal(constant);
           (void) EvaluateImage(_image,PowEvaluateOperator,constant,_exception);
+          if (_image->gamma != 0.0)
+            _image->gamma*=constant;
 #endif
           /* Set gamma setting -- Old meaning of "+gamma"
            * _image->gamma=StringToDouble(arg1,(char **) NULL);