image-rs / image-tiff

TIFF decoding and encoding library in pure Rust
MIT License
120 stars 78 forks source link

Loading fails with "invalid code in LZW stream" #231

Open sophie-h opened 6 months ago

sophie-h commented 6 months ago

This image can be displayed elsewhere but not with image-tiff

https://gitlab.gnome.org/sophie-h/glycin/uploads/e845da2ace4d300e2aeebfb9159232c2/test.tif

Err(
    IoError(
        Custom {
            kind: InvalidData,
            error: InvalidCode,
        },
    ),
)

(invalid code in LZW stream)

Original issue report: https://gitlab.gnome.org/sophie-h/glycin/-/issues/53

fintelia commented 6 months ago

Possibly related: https://github.com/image-rs/weezl/issues/41