Skip to main content

detect_image_format_from_bytes

Function detect_image_format_from_bytes 

Source
pub fn detect_image_format_from_bytes(bytes: &[u8]) -> ImageFormat
Expand description

Detects an image format from common magic bytes without fully parsing the file.