Skip to main content

image_format

Function image_format 

pub fn image_format(bytes: &[u8]) -> Option<ImageFormat>
Expand description

The picture format bytes start with, from the signature alone: PNG, JPEG, GIF, WebP or SVG. Unlike [sniff] it needs no complete header, so it also answers for a truncated prefix.