From: cristy Date: Tue, 26 Jun 2012 17:45:22 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~5340 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=97152dba35261755d0b41b8ffaa86d2e4160924f;p=imagemagick --- diff --git a/coders/gif.c b/coders/gif.c index 1c62d3ea4..4948ac423 100644 --- a/coders/gif.c +++ b/coders/gif.c @@ -1194,6 +1194,8 @@ static Image *ReadGIFImage(const ImageInfo *image_info,ExceptionInfo *exception) { (void) CopyMagickString(name,"magick",sizeof(name)); image->gamma=StringToDouble((char *) info+6,(char **) NULL); + if (image->gamma == 1.0) + image->colorspace=RGBColorspace; } else (void) FormatLocaleString(name,sizeof(name),"gif:%.11s",