From c1eb064fbe6f46414a1dfad2b53df64e3aeeb41c Mon Sep 17 00:00:00 2001 From: Cristy Date: Sat, 7 Jul 2018 12:03:24 -0400 Subject: [PATCH] Add support for image.extent --- MagickCore/fx.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/MagickCore/fx.c b/MagickCore/fx.c index 6aa38f771..8a5990a55 100644 --- a/MagickCore/fx.c +++ b/MagickCore/fx.c @@ -1661,6 +1661,13 @@ 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) -- 2.40.0