From db7f9f02b758fb67f3b098b38a39761cad751adc Mon Sep 17 00:00:00 2001 From: Sludge <96552222+SludgePhD@users.noreply.github.com> Date: Sun, 23 Jun 2024 15:59:04 +0200 Subject: [PATCH] Map `.apng` files to `ImageFormat::Png` --- src/image.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/image.rs b/src/image.rs index b8cf0d71b5..97a2ed0351 100644 --- a/src/image.rs +++ b/src/image.rs @@ -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,