Function image::io::free_functions::guess_format
source ยท pub fn guess_format(buffer: &[u8]) -> ImageResult<ImageFormat>
Expand description
Guess image format from memory block
Makes an educated guess about the image format based on the Magic Bytes at the beginning. TGA is not supported by this function. This is not to be trusted on the validity of the whole memory block