Skip to content

Commit 84fd828

Browse files
authored
Merge pull request #2264 from SludgePhD/patch-1
Map `.apng` files to `ImageFormat::Png`
2 parents 6e73a17 + db7f9f0 commit 84fd828

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)