pub fn image_format_from_ext(ext: &str) -> Option<ImageFormat>
由扩展名/格式名(不含点,大小写不敏感)映射到 ImageFormat。
ImageFormat