add CMYKA (#208)

This commit is contained in:
Emma authored and GitHub committed 2025-06-15 16:38:22 -07:00
1 parent 83e6d64751
commit 29b71ff597
6 files changed
+23

No files matched your search

+2
View File
@@ -330,6 +330,7 @@ impl Image {
},
PhotometricInterpretation::CMYK => match self.samples {
4 => Ok(ColorType::CMYK(self.bits_per_sample)),
5 => Ok(ColorType::CMYKA(self.bits_per_sample)),
_ => Err(TiffError::UnsupportedError(
TiffUnsupportedError::InterpretationWithBits(
self.photometric_interpretation,
@@ -567,6 +568,7 @@ impl Image {
ColorType::RGB(n)
| ColorType::RGBA(n)
| ColorType::CMYK(n)
| ColorType::CMYKA(n)
| ColorType::YCbCr(n)
| ColorType::Gray(n)
| ColorType::Multiband {