From d41e12f2e2b1ba14184552360c0f7aebee314abb Mon Sep 17 00:00:00 2001
From: ste101 <stephan_bauer@gmx.de>
Date: Tue, 9 Mar 2021 10:17:06 +0100
Subject: Allow webp as background image

---
 apps/theming/lib/ImageManager.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'apps/theming')

diff --git a/apps/theming/lib/ImageManager.php b/apps/theming/lib/ImageManager.php
index d5c3bdab24d..001ad680bd8 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';
-- 
cgit v1.2.3