mirror of
https://github.com/friendica/friendica
synced 2025-04-25 16:30:10 +00:00
parent
1069cfb570
commit
7d10518e94
4 changed files with 6 additions and 21 deletions
|
@ -66,7 +66,7 @@ class Image
|
|||
|
||||
if (Images::isSupportedMimeType($type)) {
|
||||
$this->imageType = Images::getImageTypeByMimeType($type);
|
||||
} elseif (($type == '') || substr($type, 0, 6) == 'image/' || substr($type, 0, 12) == ' application/') {
|
||||
} elseif (($type == '') || substr($type, 0, 6) != 'image/' || substr($type, 0, 12) != ' application/') {
|
||||
$this->imageType = IMAGETYPE_WEBP;
|
||||
DI::logger()->debug('Unhandled image mime type, use WebP instead', ['type' => $type, 'filename' => $filename, 'size' => strlen($data)]);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue