We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0dc2bc4 commit e4899e4Copy full SHA for e4899e4
1 file changed
src/tiff.imageio/tiffinput.cpp
@@ -1312,6 +1312,7 @@ TIFFInput::readspec(bool read_meta)
1312
if (m_rowsperstrip > 0) {
1313
// Only set the attrib if a legit value was found in the file
1314
m_spec.attribute("tiff:RowsPerStrip", m_rowsperstrip);
1315
+ m_rowsperstrip = std::min(m_rowsperstrip, m_spec.height);
1316
} else {
1317
// Default if not found is "one strip for the whole image"
1318
m_rowsperstrip = m_spec.height;
0 commit comments