From d41e12f2e2b1ba14184552360c0f7aebee314abb Mon Sep 17 00:00:00 2001 From: ste101 Date: Tue, 9 Mar 2021 10:17:06 +0100 Subject: [PATCH] Allow webp as background image --- apps/theming/lib/ImageManager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/theming/lib/ImageManager.php b/apps/theming/lib/ImageManager.php index d5c3bdab24..001ad680bd 100644 --- a/apps/theming/lib/ImageManager.php +++ b/apps/theming/lib/ImageManager.php @@ -258,7 +258,7 @@ class ImageManager { * @return array */ private function getSupportedUploadImageFormats(string $key): array { - $supportedFormats = ['image/jpeg', 'image/png', 'image/gif']; + $supportedFormats = ['image/jpeg', 'image/png', 'image/gif', 'image/webp']; if ($key !== 'favicon' || $this->shouldReplaceIcons() === true) { $supportedFormats[] = 'image/svg+xml';