Revert patches to solve #8484 and #8506.

This commit is contained in:
Dirk Lemstra
2025-12-27 18:16:56 +01:00
parent 204718c221
commit d6a53ceb90
-6
View File
@@ -3580,9 +3580,6 @@ static MagickBooleanType WriteTIFFImage(const ImageInfo *image_info,
case FaxCompression:
case Group4Compression:
{
size_t
channels;
if (IsImageMonochrome(image) == MagickFalse)
{
if (IsImageGray(image) == MagickFalse)
@@ -3591,9 +3588,6 @@ static MagickBooleanType WriteTIFFImage(const ImageInfo *image_info,
(void) SetImageDepth(image,1,exception);
}
image->depth=1;
channels=GetPixelChannels(image);
if (channels != 1 && (channels != 2 || image->storage_class != PseudoClass))
compression=UndefinedCompression;
break;
}
case JPEGCompression: