strip size = image height

This commit is contained in:
Robert Wassens committed 2020-12-04 12:45:46 +01:00
1 parent c9703dcb8a
commit 1b38ff9410
1 file changed
+2 -1
+2 -1
View File
@@ -623,7 +623,8 @@ impl<'a, W: 'a + Write + Seek, T: ColorType> ImageEncoder<'a, W, T> {
let row_bytes = row_samples * u64::from(<T::Inner>::BYTE_LEN);
// As per tiff spec each strip should be about 8k long
let rows_per_strip = (8000 + row_bytes - 1) / row_bytes;
// let rows_per_strip = (8000 + row_bytes - 1) / row_bytes;
let rows_per_strip = height as u64;
let strip_count = (u64::from(height) + rows_per_strip - 1) / rows_per_strip;