Upgrade Group4Reader dimensions from u16 to u32

This commit is contained in:
Maria Pospelova committed 2026-03-03 10:50:27 +00:00
1 parent 2ac8be1177
commit c304a3cc13
3 files changed
+24 -3

No files matched your search

+3 -3
View File
@@ -260,9 +260,9 @@ impl<R: Read> Read for PackBitsReader<R> {
pub struct Group4Reader<R: Read> {
decoder: fax34::decoder::Group4Decoder<io::Bytes<io::BufReader<io::Take<R>>>>,
line_buf: io::Cursor<Vec<u8>>,
height: u16,
height: u32,
width: u16,
y: u16,
y: u32,
}
#[cfg(feature = "fax")]
@@ -273,7 +273,7 @@ impl<R: Read> Group4Reader<R> {
compressed_length: u64,
) -> crate::TiffResult<Self> {
let width = u16::try_from(dimensions.0)?;
let height = u16::try_from(dimensions.1)?;
let height = dimensions.1;
Ok(Self {
decoder: fax34::decoder::Group4Decoder::new(