From: Cristy Date: Wed, 28 Mar 2018 23:30:17 +0000 (-0400) Subject: https://github.com/ImageMagick/ImageMagick/issues/1067 X-Git-Tag: 7.0.7-29~280 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9e8e6566487801f1e56e9c18704be47bfb25800b;p=imagemagick https://github.com/ImageMagick/ImageMagick/issues/1067 --- 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)