From c4c936d7b0817717db27f8914a94941659c719df Mon Sep 17 00:00:00 2001 From: Cristy Date: Sat, 16 Feb 2019 07:02:08 -0500 Subject: [PATCH] https://github.com/ImageMagick/ImageMagick/issues/1477 --- coders/gif.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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)) -- 2.40.0