pub fn sniff(bytes: &[u8]) -> Option<ImageFormat>Expand description
Detect the image format by magic bytes. Returns None for any
payload that isn’t a known inline-renderable raster.
pub fn sniff(bytes: &[u8]) -> Option<ImageFormat>Detect the image format by magic bytes. Returns None for any
payload that isn’t a known inline-renderable raster.