image-rs / image-tiff

TIFF decoding and encoding library in pure Rust
MIT License
117 stars 75 forks source link

Read Byte as u8, SignedByte as i8 #236

Open weiji14 opened 2 months ago

weiji14 commented 2 months ago

Previously, Byte values were read incorrectly as u32 instead of u8, and SignedShort values were read incorrectly as i32 instead of i8.

This PR does the following:

Similar to #235, resolves some inconsistencies raised in #204.