Function image_size
pub fn image_size(bytes: &[u8]) -> Option<(ImageFormat, u32, u32)>Expand description
A PNG, JPEG, GIF or WebP picture’s format and intrinsic width and height, read from its
header. None when bytes is no such picture or its header states no size.