Skip to content

Commit

Permalink
Group 4 compression is designed for bilevel images (black and white)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristy committed Jan 18, 2025
1 parent 8cbd11e commit 53fccd7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions coders/tiff.c
Original file line number Diff line number Diff line change
Expand Up @@ -3267,6 +3267,8 @@ static MagickBooleanType WriteTIFFImage(const ImageInfo *image_info,
(void) SetImageDepth(image,1);
}
image->depth=1;
if (image->matte != MagickFalse)
compression=UndefinedCompression;
break;
}
case JPEGCompression:
Expand Down

0 comments on commit 53fccd7

Please sign in to comment.