]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Wed, 10 Nov 2010 14:14:14 +0000 (14:14 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Wed, 10 Nov 2010 14:14:14 +0000 (14:14 +0000)
magick/fx.c
magick/property.c

index c8fadd90c575c3d1260b97efcf92c0b582fdbfb3..5c966f2153124191861ca15d429239af48a48955 100644 (file)
@@ -2783,8 +2783,7 @@ MagickExport MagickBooleanType FxEvaluateExpression(FxInfo *fx_info,
   MagickBooleanType
     status;
 
-  status=FxEvaluateChannelExpression(fx_info,DefaultChannels,0,0,alpha,
-    exception);
+  status=FxEvaluateChannelExpression(fx_info,GrayChannel,0,0,alpha,exception);
   return(status);
 }
 
index 4f1589dad4ccc92bdbdfabd983f2289aba85fff5..f88e7f3d7b2ca50f96fbf680ca1e9d71181ea301 100644 (file)
@@ -2025,7 +2025,8 @@ MagickExport const char *GetImageProperty(const Image *image,
       if (LocaleNCompare("fx:",property,3) == 0)
         {
           fx_info=AcquireFxInfo(image,property+3);
-          status=FxEvaluateExpression(fx_info,0,0,&alpha,exception);
+          status=FxEvaluateChannelExpression(fx_info,DefaultChannels,0,0,&alpha,
+            exception);
           fx_info=DestroyFxInfo(fx_info);
           if (status != MagickFalse)
             {