Skip to content

Commit

Permalink
Upgrade tiff
Browse files Browse the repository at this point in the history
  • Loading branch information
fintelia committed Aug 4, 2023
1 parent f784812 commit 98c43d3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ num-traits = "0.2.0"
gif = { version = "0.12", optional = true }
jpeg = { package = "jpeg-decoder", version = "0.3.0", default-features = false, optional = true }
png = { version = "0.17.6", optional = true }
tiff = { version = "0.8.0", optional = true }
tiff = { version = "0.9.0", optional = true }
ravif = { version = "0.11.0", optional = true }
rgb = { version = "0.8.25", optional = true }
mp4parse = { version = "0.17.0", optional = true }
Expand Down
3 changes: 3 additions & 0 deletions src/codecs/tiff.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ where
}
tiff::ColorType::GrayA(n) => return Err(err_unknown_color_type(n.saturating_mul(2))),
tiff::ColorType::RGB(n) => return Err(err_unknown_color_type(n.saturating_mul(3))),
tiff::ColorType::YCbCr(n) => {
return Err(err_unknown_color_type(n.saturating_mul(3)))
}
tiff::ColorType::RGBA(n) | tiff::ColorType::CMYK(n) => {
return Err(err_unknown_color_type(n.saturating_mul(4)))
}
Expand Down

0 comments on commit 98c43d3

Please sign in to comment.