]> granicus.if.org Git - imagemagick/commitdiff
https://github.com/ImageMagick/ImageMagick/issues/1067
authorCristy <urban-warrior@imagemagick.org>
Wed, 28 Mar 2018 23:30:17 +0000 (19:30 -0400)
committerCristy <urban-warrior@imagemagick.org>
Wed, 28 Mar 2018 23:30:17 +0000 (19:30 -0400)
MagickCore/property.c

index 9e2035eabb71c80074311bc1710489aaf2bce687..2101cf61492c95766670a0f1d1ca54029e21c483 100644 (file)
@@ -3040,6 +3040,13 @@ MagickExport const char *GetMagickProperty(ImageInfo *image_info,
     }
     case 'p':
     {
+      if (LocaleCompare("page",property) == 0)
+        {
+          WarnNoImageReturn("\"%%[%s]\"",property);
+          (void) FormatLocaleString(value,MaxTextExtent,"%.20g",(double)
+            GetImageIndexInList(image)+1);
+          break;
+        }
 #if defined(MAGICKCORE_LCMS_DELEGATE)
       if (LocaleCompare("profile:icc",property) == 0 ||
           LocaleCompare("profile:icm",property) == 0)
@@ -3093,6 +3100,17 @@ MagickExport const char *GetMagickProperty(ImageInfo *image_info,
         }
       break;
     }
+    case 'q':
+    {
+      if (LocaleCompare("quality",property) == 0)
+        {
+          WarnNoImageReturn("\"%%[%s]\"",property);
+          (void) FormatLocaleString(value,MagickPathExtent,"%.20g",(double)
+            image->quality);
+          break;
+        }
+      break;
+    }
     case 'r':
     {
       if (LocaleCompare("resolution.x",property) == 0)