mirror of
https://github.com/friendica/friendica
synced 2025-04-30 07:04:23 +02:00
commit
0d95535137
2 changed files with 10 additions and 4 deletions
|
@ -247,8 +247,11 @@ class Images
|
|||
if ($data) {
|
||||
$image = new Image($img_str);
|
||||
|
||||
$data['blurhash'] = $image->getBlurHash();
|
||||
$data['size'] = $filesize;
|
||||
if ($image->isValid()) {
|
||||
$data['blurhash'] = $image->getBlurHash();
|
||||
}
|
||||
|
||||
$data['size'] = $filesize;
|
||||
}
|
||||
|
||||
return is_array($data) ? $data : [];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue