added round trip test

fixed ci
added colortype
This commit is contained in:
Kurt Kühnert committed 2023-01-05 09:34:54 +01:00
1 parent a08604b015
commit da07c0f4f5
4 files changed
+15 -3

No files matched your search

+2 -3
View File
@@ -313,10 +313,9 @@ impl Image {
self.bits_per_sample.clone(),
),
)),
}
,
},
PhotometricInterpretation::YCbCr => match self.bits_per_sample[..] {
[y, cb, cr] if [y, y] == [cb, cr]=> Ok(ColorType::YCbCr(y)),
[y, cb, cr] if [y, y] == [cb, cr] => Ok(ColorType::YCbCr(y)),
_ => Err(TiffError::UnsupportedError(
TiffUnsupportedError::InterpretationWithBits(
self.photometric_interpretation,