Skip to content

Commit

Permalink
Merge pull request #2264 from SludgePhD/patch-1
Browse files Browse the repository at this point in the history
Map `.apng` files to `ImageFormat::Png`
  • Loading branch information
HeroicKatora committed Jun 23, 2024
2 parents 6e73a17 + db7f9f0 commit 84fd828
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/image.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ impl ImageFormat {
Some(match ext.as_str() {
"avif" => ImageFormat::Avif,
"jpg" | "jpeg" => ImageFormat::Jpeg,
"png" => ImageFormat::Png,
"png" | "apng" => ImageFormat::Png,
"gif" => ImageFormat::Gif,
"webp" => ImageFormat::WebP,
"tif" | "tiff" => ImageFormat::Tiff,
Expand Down

0 comments on commit 84fd828

Please sign in to comment.