Allow TIFF min=white PHOTOMETRIC interpretation images to be read unchanged

This commit is contained in:
saskatchewancatch 2017-09-05 21:43:33 -06:00 committed by GitHub
parent 1caca2112b
commit 4832c24ef7

View File

@ -235,7 +235,7 @@ bool TiffDecoder::readHeader()
m_hdr = false;
if( bpp > 8 &&
((photometric != 2 && photometric != 1) ||
((photometric > 2) ||
(ncn != 1 && ncn != 3 && ncn != 4)))
bpp = 8;