Function get_image_data_format

Source
fn get_image_data_format(data: &[u8]) -> Option<ImageFormat>
Expand description

Checks that file has a PNG, a GIF, a JPEG or a WebP magic bytes.