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/jbig.c b/coders/jbig.c index 9d11b8f..36ca5b4 100644 --- a/coders/jbig.c +++ b/coders/jbig.c
@@ -446,7 +446,8 @@ /* Allocate pixel data. */ - if (IssRGBColorspace(image->colorspace) == MagickFalse) + if ((IssRGBColorspace(image->colorspace) == MagickFalse) && + (IsImageGray(image,exception) == MagickFalse)) (void) TransformImageColorspace(image,sRGBColorspace,exception); number_packets=(image->columns+7)/8; pixels=(unsigned char *) AcquireQuantumMemory(number_packets,