commit | d9ecd04e9c567113b4b605cf76681cbb37c093cd | [log] [tgz] |
---|---|---|
author | cristy <urban-warrior@git.imagemagick.org> | Sun Jun 17 18:26:12 2012 +0000 |
committer | cristy <urban-warrior@git.imagemagick.org> | Sun Jun 17 18:26:12 2012 +0000 |
tree | 1c54f27f8ffd6cefbb729a8604636fecc0d362db | |
parent | ef6a54d52a78889de8d633c59e954bd6127ed5c2 [diff] [blame] |
diff --git a/coders/sun.c b/coders/sun.c index a4c0ff1..4a970d8 100644 --- a/coders/sun.c +++ b/coders/sun.c
@@ -761,7 +761,8 @@ /* Initialize SUN raster file header. */ - if (IssRGBColorspace(image->colorspace) == MagickFalse) + if ((IssRGBColorspace(image->colorspace) == MagickFalse) && + (IsImageGray(image,exception) == MagickFalse)) (void) TransformImageColorspace(image,sRGBColorspace,exception); sun_info.magic=0x59a66a95; if ((image->columns != (unsigned int) image->columns) ||