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/pnm.c b/coders/pnm.c index d4e9242..5fa8918 100644 --- a/coders/pnm.c +++ b/coders/pnm.c
@@ -1564,7 +1564,8 @@ } if (format != '7') { - if (IssRGBColorspace(image->colorspace) == MagickFalse) + if ((IssRGBColorspace(image->colorspace) == MagickFalse) && + (IsImageGray(image,exception) == MagickFalse)) (void) TransformImageColorspace(image,sRGBColorspace,exception); (void) FormatLocaleString(buffer,MaxTextExtent,"%.20g %.20g\n", (double) image->columns,(double) image->rows);