From: Cristy Date: Sat, 7 Jul 2018 18:27:30 +0000 (-0400) Subject: ... X-Git-Tag: 7.0.8-6~18 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=833c86182c6f521039fa494ef469ef748b942fbd;p=imagemagick ... --- diff --git a/ChangeLog b/ChangeLog index 1ea4bc3dd..a5658897d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,6 @@ 2018-07-06 7.0.8-6 Cristy * Improve SVG support for tspan element. + * Add support for -fx image.extent. 2018-07-04 7.0.8-5 Cristy * Release ImageMagick version 7.0.8-5, GIT revision 14514:bba545bbb:20180704. diff --git a/MagickCore/fx.c b/MagickCore/fx.c index 8a5990a55..491c78121 100644 --- a/MagickCore/fx.c +++ b/MagickCore/fx.c @@ -1607,6 +1607,17 @@ static double FxGetSymbol(FxInfo *fx_info,const PixelChannel channel, return(FxChannelStatistics(fx_info,image,channel,symbol,exception)); break; } + case 'E': + case 'e': + { + if (LocaleCompare(symbol,"extent") == 0) + { + if (image->extent != 0) + return(image->extent); + return(GetBlobSize(image)); + } + break; + } case 'G': case 'g': { @@ -1661,13 +1672,6 @@ static double FxGetSymbol(FxInfo *fx_info,const PixelChannel channel, (LocaleCompare(symbol,"image.skewness") == 0) || (LocaleCompare(symbol,"image.standard_deviation") == 0)) return(FxChannelStatistics(fx_info,image,channel,symbol+6,exception)); - if (LocaleCompare(symbol,"image.extent") == 0) - { - if (image->extent != 0) - return(image->extent); - else - return(GetBlobSize(fx_info->images)); - } if (LocaleCompare(symbol,"image.resolution.x") == 0) return(image->resolution.x); if (LocaleCompare(symbol,"image.resolution.y") == 0)