From 726b7c7fbacbd77bf589ab860efecac21616b208 Mon Sep 17 00:00:00 2001 From: Niklas Date: Sat, 5 Apr 2025 13:48:32 +0200 Subject: [PATCH] Add additional image formats to Interchange Resolves #15529 --- js/foundation.interchange.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/foundation.interchange.js b/js/foundation.interchange.js index bbd17ca950..02cb291dc0 100644 --- a/js/foundation.interchange.js +++ b/js/foundation.interchange.js @@ -169,7 +169,7 @@ class Interchange extends Plugin { if (type === 'auto') { if (this.$element[0].nodeName === 'IMG') type = 'src'; - else if (path.match(/\.(gif|jpe?g|png|svg|tiff)([?#].*)?/i)) + else if (path.match(/\.(gif|jpe?g|png|svg|tiff|avif|webp)([?#].*)?/i)) type = 'background'; else type = 'html';