|
|
|
|
|
|
|
|
* @return array |
|
|
* @return array |
|
|
*/ |
|
|
*/ |
|
|
private function getSupportedUploadImageFormats(string $key): 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) { |
|
|
if ($key !== 'favicon' || $this->shouldReplaceIcons() === true) { |
|
|
$supportedFormats[] = 'image/svg+xml'; |
|
|
$supportedFormats[] = 'image/svg+xml'; |