From 9e8e6566487801f1e56e9c18704be47bfb25800b Mon Sep 17 00:00:00 2001 From: Cristy Date: Wed, 28 Mar 2018 19:30:17 -0400 Subject: [PATCH] https://github.com/ImageMagick/ImageMagick/issues/1067 --- MagickCore/property.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/MagickCore/property.c b/MagickCore/property.c index 9e2035eab..2101cf614 100644 --- a/MagickCore/property.c +++ b/MagickCore/property.c @@ -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) -- 2.40.0