commit | ef6a54d52a78889de8d633c59e954bd6127ed5c2 | [log] [tgz] |
---|---|---|
author | cristy <urban-warrior@git.imagemagick.org> | Sun Jun 17 17:01:44 2012 +0000 |
committer | cristy <urban-warrior@git.imagemagick.org> | Sun Jun 17 17:01:44 2012 +0000 |
tree | dedb3ed7f611a6d2f152d073beeb044c678240b1 | |
parent | 00acef01b5601dac9fe237fb56fa49c74f76c265 [diff] [blame] |
diff --git a/coders/png.c b/coders/png.c index 3a2cb96..b098c40 100644 --- a/coders/png.c +++ b/coders/png.c
@@ -7821,7 +7821,8 @@ } } - if (IssRGBColorspace(image->colorspace) == MagickFalse) + if ((IssRGBColorspace(image->colorspace) == MagickFalse) && + (IsImageGray(image,exception) == MagickFalse)) (void) TransformImageColorspace(image,sRGBColorspace,exception); /*