Default missing PhotometricInterpretation to BlackIsZero

This commit is contained in:
Wim Pomp committed 2026-10-03 14:52:07 +02:00
1 parent 3302936b08
commit 934fde185a
1 file changed
+1 -1
+1 -1
View File
@@ -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.