Skip to main content

validate_image_signature

Function validate_image_signature 

Source
pub fn validate_image_signature(
    mime_type: &str,
    bytes: &[u8],
) -> Result<(), TextureIngestionError>
Expand description

Validate the binary file header against the declared MIME type.