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/jp2.c b/coders/jp2.c index 47b3b80..18c36c5 100644 --- a/coders/jp2.c +++ b/coders/jp2.c
@@ -911,7 +911,8 @@ /* Initialize JPEG 2000 API. */ - if (IssRGBColorspace(image->colorspace) == MagickFalse) + if ((IssRGBColorspace(image->colorspace) == MagickFalse) && + (IsImageGray(image,exception) == MagickFalse)) (void) TransformImageColorspace(image,sRGBColorspace,exception); jp2_stream=JP2StreamManager(image); if (jp2_stream == (jas_stream_t *) NULL)