Browse Source

Allow webp as background image

tags/v22.0.0beta1
ste101 3 years ago
parent
commit
d41e12f2e2
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      apps/theming/lib/ImageManager.php

+ 1
- 1
apps/theming/lib/ImageManager.php View File

@@ -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';

Loading…
Cancel
Save