From: Cristy Date: Sat, 31 Mar 2018 17:42:40 +0000 (-0400) Subject: https://github.com/ImageMagick/ImageMagick/issues/1067 X-Git-Tag: 7.0.7-29~251 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b25852f4f1e933a75ca32b30289fca2f8a409a86;p=imagemagick https://github.com/ImageMagick/ImageMagick/issues/1067 --- diff --git a/MagickCore/property.c b/MagickCore/property.c index 2101cf614..f7f5f4dfc 100644 --- a/MagickCore/property.c +++ b/MagickCore/property.c @@ -3043,8 +3043,8 @@ MagickExport const char *GetMagickProperty(ImageInfo *image_info, if (LocaleCompare("page",property) == 0) { WarnNoImageReturn("\"%%[%s]\"",property); - (void) FormatLocaleString(value,MaxTextExtent,"%.20g",(double) - GetImageIndexInList(image)+1); + (void) FormatLocaleString(value,MagickPathExtent,"%.20gx%.20g", + (double) image->page.width,(double) image->page.height); break; } #if defined(MAGICKCORE_LCMS_DELEGATE)