pub fn sniff(bytes: &[u8]) -> Option<(ImageFormat, u64, u64)>Expand description
Identify an image’s format and pixel dimensions from its header alone.
Returns None for anything not in the allowlist or with a header too short
or malformed to read. Never decodes pixel data.