fn read_image_dimensions(data: &[u8], format: ImageFormat) -> Option<(u32, u32)>
读 image crate 支持格式(jpeg/png/gif)的 header 拿尺寸。