From Eric Sokolowsky, support for 2 channel tiff images

This commit is contained in:
Robert Osfield
2004-10-24 14:19:27 +00:00
parent 63e4587a88
commit 2252e9e851

View File

@@ -230,7 +230,10 @@ int *numComponents_ret)
if (TIFFGetField(in, TIFFTAG_SAMPLESPERPIXEL, &samplesperpixel) == 1)
{
if (samplesperpixel != 1 && samplesperpixel != 3 && samplesperpixel != 4)
if (samplesperpixel != 1 &&
samplesperpixel != 2 &&
samplesperpixel != 3 &&
samplesperpixel != 4)
{
/* Bad samples/pixel */
tifferror = ERR_UNSUPPORTED;