mirror of
https://github.com/storytold/wordcraft.git
synced 2026-11-18 00:15:44 +00:00
docs(geom): M14: clarify truncated TIFF errors
This commit is contained in:
1 parent
e2f94ecef9
commit
e40199bf6f
1 file changed
+2
-2
@@ -65,8 +65,8 @@ const TIFF_COMPRESSIONS: [u16; 6] = [1, 4, 5, 8, 32946, 32773];
|
||||
/// # Errors
|
||||
///
|
||||
/// Returns `Refusal::NotAPicture` for an unsupported format, `Refusal::Unsupported` for a TIFF
|
||||
/// whose compression cannot be budgeted, `Refusal::TooLarge` on size arithmetic overflow, and
|
||||
/// `Refusal::Broken` for an invalid header.
|
||||
/// whose compression cannot be read or budgeted (including a truncated TIFF), `Refusal::TooLarge`
|
||||
/// on size arithmetic overflow, and `Refusal::Broken` for an invalid header of another format.
|
||||
pub fn probe(bytes: &[u8]) -> Result<Probe<'_>, Refusal> {
|
||||
let format = image::guess_format(bytes).map_err(|_| Refusal::NotAPicture)?;
|
||||
let held = match format {
|
||||
|
||||
Reference in new issue
Block a user