summaryrefslogtreecommitdiffstats
path: root/apps/theming
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2021-03-11 10:52:31 +0100
committerGitHub <noreply@github.com>2021-03-11 10:52:31 +0100
commitf90090d2b361830b317e1c6dc48f268acf50db15 (patch)
tree86f3ea268d228898dec167cf4b2c7008de5fc6de /apps/theming
parentdd1248d672ab634e616defb51f24811328a7ae3a (diff)
parentd41e12f2e2b1ba14184552360c0f7aebee314abb (diff)
downloadnextcloud-server-f90090d2b361830b317e1c6dc48f268acf50db15.tar.gz
nextcloud-server-f90090d2b361830b317e1c6dc48f268acf50db15.zip
Merge pull request #26019 from ste101/patch-1
Allow webp as background image
Diffstat (limited to 'apps/theming')
-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';