From: Cristy Date: Mon, 7 Aug 2017 19:18:47 +0000 (-0400) Subject: ... X-Git-Tag: 7.0.6-6~19 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4e378ea8fb99e869768f34e900105e8c769adfcd;p=imagemagick ... --- diff --git a/coders/wpg.c b/coders/wpg.c index 4756dba3f..03937e06b 100644 --- a/coders/wpg.c +++ b/coders/wpg.c @@ -1127,7 +1127,7 @@ static Image *ReadWPGImage(const ImageInfo *image_info, status=SetImageExtent(image,image->columns,image->rows,exception); if (status == MagickFalse) break; - if ((image->colors == 0) && (bpp != 24)) + if ((image->colors == 0) && (bpp <= 16)) { image->colors=one << bpp; if (!AcquireImageColormap(image,image->colors,exception))