Skip to main content

detect_format

Function detect_format 

Source
pub fn detect_format(header: &[u8]) -> ImageFormat
Expand description

Detect image format from the first bytes of a file (magic bytes).