Commit d6a53ceb9 for imagemagick.org

commit d6a53ceb904bdc752e005fb52db8e16fc0b8e808
Author: Dirk Lemstra <dirk@lemstra.org>
Date:   Sat Dec 27 18:16:56 2025 +0100

    Revert patches to solve #8484 and #8506.

diff --git a/coders/tiff.c b/coders/tiff.c
index 1f82054e4..1547b37f3 100644
--- a/coders/tiff.c
+++ b/coders/tiff.c
@@ -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: