Skip to content

Commit

Permalink
Merge pull request #26019 from ste101/patch-1
Browse files Browse the repository at this point in the history
Allow webp as background image
  • Loading branch information
rullzer authored Mar 11, 2021
2 parents dd1248d + d41e12f commit f90090d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/theming/lib/ImageManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ public function updateImage(string $key, string $tmpFile) {
* @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';
Expand Down

0 comments on commit f90090d

Please sign in to comment.