mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-11 09:34:26 +02:00
Improved Mime Type detection
This commit is contained in:
parent
248a7fa48a
commit
d3722c945b
9 changed files with 89 additions and 102 deletions
|
@ -432,9 +432,7 @@ class Photo
|
|||
return false;
|
||||
}
|
||||
|
||||
if (empty($type)) {
|
||||
$type = Images::guessType($image_url, true);
|
||||
}
|
||||
$type = Images::getMimeTypeByData($img_str, $image_url, $type);
|
||||
|
||||
$Image = new Image($img_str, $type);
|
||||
if ($Image->isValid()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue