From 1a6e41ac9d90a1a9b6e6dee9a0038a6c0e1e5e18 Mon Sep 17 00:00:00 2001 From: cristy Date: Mon, 8 Nov 2010 17:09:54 +0000 Subject: [PATCH] --- ChangeLog | 3 +++ coders/tiff.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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); -- 2.50.1