From 86bd50663dd74d48a0540174e8ae7267f9b96bb5 Mon Sep 17 00:00:00 2001 From: Cristy Date: Thu, 14 Sep 2017 04:51:49 -0400 Subject: [PATCH] https://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=32407 --- coders/gif.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coders/gif.c b/coders/gif.c index ab2d76e8d..6202f5e16 100644 --- a/coders/gif.c +++ b/coders/gif.c @@ -1255,7 +1255,7 @@ static Image *ReadGIFImage(const ImageInfo *image_info,ExceptionInfo *exception) image->colors=BitSet((int) flag,0x80) == 0 ? global_colors : one << ((size_t) (flag & 0x07)+1); if (opacity >= (ssize_t) image->colors) - opacity=(-1); + image->colors=opacity+1; image->page.width=page.width; image->page.height=page.height; image->page.y=page.y; -- 2.40.0