tiffcrop: Inconsistent check on bps
https://gitlab.com/libtiff/libtiff/blob/master/tools/tiffcrop.c#L7914
7747: bps = image->bps;
7751: TIFFSetField(out, TIFFTAG_BITSPERSAMPLE, bps);
7892: if (((bps % 8) == 0) || ((bps % 12) == 0))
7893: {
7913: case COMPRESSION_CCITTFAX4:
7914: if (bps != 1)
This check if (bps != 1)
is missing in writeSingleSection
https://gitlab.com/libtiff/libtiff/blob/master/tools/tiffcrop.c#L7242
7074: bps = image->bps;
7077: TIFFSetField(out, TIFFTAG_BITSPERSAMPLE, bps);
7221: if (((bps % 8) == 0) || ((bps % 12) == 0))
7242: case COMPRESSION_CCITTFAX4:
Thanks
Edited by Bug Checkers