Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorste101 <stephan_bauer@gmx.de>2021-03-09 12:17:06 +0300
committerGitHub <noreply@github.com>2021-03-09 12:17:06 +0300
commitd41e12f2e2b1ba14184552360c0f7aebee314abb (patch)
tree6aa3523e730c51a5df978fae4a33d791f08f5696 /apps/theming/lib
parentf5da1ec51d972cde4a525dcbfcb595283339d0d7 (diff)
Allow webp as background image
Diffstat (limited to 'apps/theming/lib')
-rw-r--r--apps/theming/lib/ImageManager.php2
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';