]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Wed, 1 Feb 2012 21:10:23 +0000 (21:10 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Wed, 1 Feb 2012 21:10:23 +0000 (21:10 +0000)
coders/icon.c

index 9dd025ea17ac6a06d76adc875f3dbd9aef9a0c64..acfda700ea2752eb963bb5a4baba57285c255cdf 100644 (file)
@@ -862,7 +862,8 @@ static MagickBooleanType WriteICONImage(const ImageInfo *image_info,
   next=image;
   do
   {
-    if (next->compression == ZipCompression)
+    if ((next->columns > 256L) && (next->rows > 256L) &&
+        (next->compression == ZipCompression))
       {
         Image
           *write_image;