]> granicus.if.org Git - imagemagick/commitdiff
...
authorCristy <urban-warrior@imagemagick.org>
Thu, 17 Nov 2016 14:27:04 +0000 (09:27 -0500)
committerCristy <urban-warrior@imagemagick.org>
Thu, 17 Nov 2016 14:27:04 +0000 (09:27 -0500)
MagickCore/property.c

index 39350d8127924caaee05bf8a441a644977dab381..2f5a00aca183256f3953e396df785475cb303c81 100644 (file)
@@ -667,7 +667,7 @@ static MagickBooleanType Get8BIMProperty(const Image *image,const char *key,
     count=(ssize_t) ReadPropertyMSBLong(&info,&length);
     if ((count < 0) || ((size_t) count > length))
       {
-        length=0; 
+        length=0;
         continue;
       }
     if ((*name != '\0') && (*name != '#'))
@@ -4047,6 +4047,11 @@ MagickExport MagickBooleanType SetImageProperty(Image *image,
             "SetReadOnlyProperty","`%s'",property);
           return(MagickFalse);
         }
+      if (LocaleCompare("colors",property) == 0)
+        {
+          image->colors=GetNumberColors(image,(FILE *) NULL,exception);
+          return(MagickTrue);
+        }
       if (LocaleCompare("colorspace",property) == 0)
         {
           ssize_t