Skip to main content

read_image_dimensions

Function read_image_dimensions 

Source
fn read_image_dimensions(data: &[u8], format: ImageFormat) -> Option<(u32, u32)>
Expand description

读 image crate 支持格式(jpeg/png/gif)的 header 拿尺寸。