diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2021-03-11 10:52:31 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-11 10:52:31 +0100 |
commit | f90090d2b361830b317e1c6dc48f268acf50db15 (patch) | |
tree | 86f3ea268d228898dec167cf4b2c7008de5fc6de /apps/theming | |
parent | dd1248d672ab634e616defb51f24811328a7ae3a (diff) | |
parent | d41e12f2e2b1ba14184552360c0f7aebee314abb (diff) | |
download | nextcloud-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.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'; |