]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Mon, 8 Nov 2010 17:09:54 +0000 (17:09 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Mon, 8 Nov 2010 17:09:54 +0000 (17:09 +0000)
ChangeLog
coders/tiff.c

index d9cb6e2c7d1a36b11d1c7b21748a369f626d83d1..815a65cb4ded24c1c86c5149adf00a7d62971d9e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+2010-11-08  6.6.5-8 Cristy  <quetzlzacatenango@image...>
+  * Only save TIFF image with 1-bit depth if there is no alpha channel.
+
 2010-10-29  6.6.5-6 Glenn Randers-Pehrson <glennrp@image...>
   * Added 5x5, 6x6, and 7x7 ordered-dither level maps.
 
index f51d93e96ef04329128742c76d8a2f6706452cff..24eb3b7c2b7a78ed04bd4234a9ab6292c3caad8e 100644 (file)
@@ -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);