Fix 1bpp image decoding and add a test image (#252)

This commit is contained in:
Jonathan Behrens authored and GitHub committed 2024-10-31 20:21:02 -07:00
1 parent e28ad564d9
commit 96d3a02efe
4 files changed
+17 -7

No files matched your search

-2
View File
@@ -687,8 +687,6 @@ impl Image {
let row = &mut row[..data_row_bytes];
reader.read_exact(row)?;
println!("chunk={chunk_index}, index={i}");
// Skip horizontal padding
if chunk_row_bytes > data_row_bytes {
let len = u64::try_from(chunk_row_bytes - data_row_bytes)?;