diff options
author | ste101 <stephan_bauer@gmx.de> | 2021-03-09 10:17:06 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-09 10:17:06 +0100 |
commit | d41e12f2e2b1ba14184552360c0f7aebee314abb (patch) | |
tree | 6aa3523e730c51a5df978fae4a33d791f08f5696 /apps/theming/lib | |
parent | f5da1ec51d972cde4a525dcbfcb595283339d0d7 (diff) | |
download | nextcloud-server-d41e12f2e2b1ba14184552360c0f7aebee314abb.tar.gz nextcloud-server-d41e12f2e2b1ba14184552360c0f7aebee314abb.zip |
Allow webp as background image
Diffstat (limited to 'apps/theming/lib')
-rw-r--r-- | apps/theming/lib/ImageManager.php | 2 |
1 files changed, 1 insertions, 1 deletions
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'; |