From: cristy Date: Mon, 6 Jun 2011 13:25:51 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~7459 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0b890fc17e7d31d3890a8ad07942b9c1c97f0fb9;p=imagemagick --- diff --git a/ChangeLog b/ChangeLog index 9548a4f5e..11389fc05 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,6 @@ 2011-06-03 6.7.0-3 Cristy * Support -direction right-to-left for the label: and caption: coders. + * Blue / green reversed for JPEG-compressed TIFF images. 2011-06-03 6.7.0-3 Cristy * New version 6.7.0-3. diff --git a/coders/tiff.c b/coders/tiff.c index f2e538c46..8e41dcb4b 100644 --- a/coders/tiff.c +++ b/coders/tiff.c @@ -1585,9 +1585,9 @@ static Image *ReadTIFFImage(const ImageInfo *image_info, { SetRedPixelComponent(q,ScaleCharToQuantum((unsigned char) TIFFGetR(*p))); - SetBluePixelComponent(q,ScaleCharToQuantum((unsigned char) - TIFFGetG(*p))); SetGreenPixelComponent(q,ScaleCharToQuantum((unsigned char) + TIFFGetG(*p))); + SetBluePixelComponent(q,ScaleCharToQuantum((unsigned char) TIFFGetB(*p))); if (image->matte != MagickFalse) SetAlphaPixelComponent(q,ScaleCharToQuantum((unsigned char)