diff options
-rw-r--r-- | MagickCore/property.c | 7 |
1 files changed, 7 insertions, 0 deletions
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); |