Skip to content

Commit db7f9f0

Browse files
authored
Map .apng files to ImageFormat::Png
1 parent 6e73a17 commit db7f9f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/image.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ impl ImageFormat {
8989
Some(match ext.as_str() {
9090
"avif" => ImageFormat::Avif,
9191
"jpg" | "jpeg" => ImageFormat::Jpeg,
92-
"png" => ImageFormat::Png,
92+
"png" | "apng" => ImageFormat::Png,
9393
"gif" => ImageFormat::Gif,
9494
"webp" => ImageFormat::WebP,
9595
"tif" | "tiff" => ImageFormat::Tiff,

0 commit comments

Comments
 (0)