diff --git a/src/decoder/image.rs b/src/decoder/image.rs index 8f1983b..071d28c 100644 --- a/src/decoder/image.rs +++ b/src/decoder/image.rs @@ -176,7 +176,7 @@ impl Image { .map(Value::into_u16) .transpose()? .and_then(PhotometricInterpretation::from_u16) - .ok_or(TiffUnsupportedError::UnknownInterpretation)?; + .unwrap_or(PhotometricInterpretation::BlackIsZero); // Try to parse both the compression method and the number, format, and bits of the included samples. // If they are not explicitly specified, those tags are reset to their default values and not carried from previous images.