From: Cristy Date: Sat, 1 Sep 2018 11:49:12 +0000 (-0400) Subject: https://github.com/ImageMagick/ImageMagick/issues/1285 X-Git-Tag: 7.0.8-12~104 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f0e35243bb176d4ea9e5e73664b104b1f49dc066;p=imagemagick https://github.com/ImageMagick/ImageMagick/issues/1285 --- diff --git a/MagickCore/property.c b/MagickCore/property.c index 9a39477a8..52be49e49 100644 --- a/MagickCore/property.c +++ b/MagickCore/property.c @@ -2868,6 +2868,13 @@ MagickExport const char *GetMagickProperty(ImageInfo *image_info, (void) ConcatenateMagickString(value,"a",MagickPathExtent); break; } + if (LocaleCompare("colors",property) == 0) + { + image->colors=GetNumberColors(image,(FILE *) NULL,exception); + (void) FormatLocaleString(value,MaxTextExtent,"%.20g",(double) + image->colors); + break; + } if (LocaleCompare("colorspace",property) == 0) { WarnNoImageReturn("\"%%[%s]\"",property);