From: cristy Date: Wed, 10 Nov 2010 13:59:26 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~8535 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2776cf731a99c667d1ef9ee00b40d89977069ad6;p=imagemagick --- diff --git a/ChangeLog b/ChangeLog index 9db39325a..7536875c8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -4,6 +4,8 @@ 2010-11-08 6.6.5-8 Cristy * Only save TIFF image with 1-bit depth if there is no alpha channel. * Abandon PSD composite if layer is available. + * %[fx:mean] is the mean of the default channels (all but opacity) (reference + http://www.imagemagick.org/discourse-server/viewtopic.php?f=1&t=17432). 2010-10-29 6.6.5-6 Glenn Randers-Pehrson * Added 5x5, 6x6, and 7x7 ordered-dither level maps. diff --git a/magick/property.c b/magick/property.c index e53e27aa8..3d73bc118 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,&alpha,exception); + status=FxEvaluateChannelExpression(fx_info,DefaultChannels,0,0,&alpha, + exception); fx_info=DestroyFxInfo(fx_info); if (status != MagickFalse) {