[][src]Function imagesize::image_type

pub fn image_type(header: &[u8]) -> ImageResult<ImageType>

Get the image type from a header

Arguments

  • header - The header of the file.

Remarks

This will check the header to determine what image type the data is.