From: Cristy Date: Sat, 16 Feb 2019 12:02:08 +0000 (-0500) Subject: https://github.com/ImageMagick/ImageMagick/issues/1477 X-Git-Tag: 7.0.8-28~7 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c4c936d7b0817717db27f8914a94941659c719df;p=imagemagick https://github.com/ImageMagick/ImageMagick/issues/1477 --- diff --git a/coders/gif.c b/coders/gif.c index d62ba437f..24781a117 100644 --- a/coders/gif.c +++ b/coders/gif.c @@ -1271,7 +1271,10 @@ static Image *ReadGIFImage(const ImageInfo *image_info,ExceptionInfo *exception) ((size_t) (flag & 0x07)+1); image->colors=local_colors; if (opacity >= (ssize_t) image->colors) - opacity=(-1); + { + image->colors++; + opacity=(-1); + } image->ticks_per_second=100; image->alpha_trait=opacity >= 0 ? BlendPixelTrait : UndefinedPixelTrait; if ((image->columns == 0) || (image->rows == 0))