strip size = image height
This commit is contained in:
1 parent
c9703dcb8a
commit
1b38ff9410
1 file changed
+2
-1
+2
-1
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user