Function disk::detect_image_type

source ·
pub fn detect_image_type(
    file: &File,
    overlapped_mode: bool
) -> Result<ImageType>
Expand description

Detect the type of an image file by checking for a valid header of the supported formats.