From: cristy Date: Mon, 8 Nov 2010 17:09:54 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~8540 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1a6e41ac9d90a1a9b6e6dee9a0038a6c0e1e5e18;p=imagemagick --- diff --git a/ChangeLog b/ChangeLog index d9cb6e2c7..815a65cb4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +2010-11-08 6.6.5-8 Cristy + * Only save TIFF image with 1-bit depth if there is no alpha channel. + 2010-10-29 6.6.5-6 Glenn Randers-Pehrson * Added 5x5, 6x6, and 7x7 ordered-dither level maps. diff --git a/coders/tiff.c b/coders/tiff.c index f51d93e96..24eb3b7c2 100644 --- a/coders/tiff.c +++ b/coders/tiff.c @@ -2666,7 +2666,7 @@ static MagickBooleanType WriteTIFFImage(const ImageInfo *image_info, MagickFalse ? PHOTOMETRIC_MINISWHITE : PHOTOMETRIC_MINISBLACK); (void) TIFFSetField(tiff,TIFFTAG_SAMPLESPERPIXEL,1); - if ((image_info->depth == 0) && + if ((image_info->depth == 0) && (image->matte == MagickFalse)) (IsMonochromeImage(image,&image->exception) != MagickFalse)) { status=SetQuantumDepth(image,quantum_info,1);