From: cristy Date: Wed, 10 Nov 2010 14:14:14 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~8533 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=30539869be3424134cb3fee2823fb176816f950e;p=imagemagick --- diff --git a/magick/fx.c b/magick/fx.c index c8fadd90c..5c966f215 100644 --- a/magick/fx.c +++ b/magick/fx.c @@ -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); } diff --git a/magick/property.c b/magick/property.c index 4f1589dad..f88e7f3d7 100644 --- a/magick/property.c +++ b/magick/property.c @@ -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) {