image-rs / image

Encoding and decoding images in Rust
Apache License 2.0
4.89k stars 606 forks source link

Support for tiff with int data format #1428

Open physwkim opened 3 years ago

physwkim commented 3 years ago

It is not supported for tiff with integer data format, only available for unsigned integer.

thread 'main' panicked at 'calledResult::unwrap()on anErrvalue: Unsupported(UnsupportedError { format: Exact(Tiff), kind: GenericFeature("Unhandled TIFF sample format Int") })

Some cases have negative values after performing an image operation. How about making a tiff file support the integer data type?

fintelia commented 3 years ago

See also https://github.com/image-rs/image-tiff/issues/113 and https://github.com/image-rs/image-tiff/pull/114.