]> granicus.if.org Git - imagemagick/commitdiff
https://github.com/ImageMagick/ImageMagick/issues/1067
authorCristy <urban-warrior@imagemagick.org>
Sat, 31 Mar 2018 17:42:40 +0000 (13:42 -0400)
committerCristy <urban-warrior@imagemagick.org>
Sat, 31 Mar 2018 17:42:40 +0000 (13:42 -0400)
MagickCore/property.c

index 2101cf61492c95766670a0f1d1ca54029e21c483..f7f5f4dfc6e0aefcb37f1170ee5da4c697c48e90 100644 (file)
@@ -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)