mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-25 09:43:41 +00:00
Merge pull request 'Bluesky/Twitter: New parameter added for rhe picture creation' (#1465) from heluecht/friendica-addons:images into 2024.03-rc
Reviewed-on: https://git.friendi.ca/friendica/friendica-addons/pulls/1465
This commit is contained in:
commit
810dc02dd4
2 changed files with 2 additions and 2 deletions
|
@ -896,7 +896,7 @@ function bluesky_upload_blob(int $uid, array $photo): ?stdClass
|
||||||
$retrial = Worker::getRetrial();
|
$retrial = Worker::getRetrial();
|
||||||
$content = Photo::getImageForPhoto($photo);
|
$content = Photo::getImageForPhoto($photo);
|
||||||
|
|
||||||
$picture = new Image($content, $photo['type']);
|
$picture = new Image($content, $photo['type'], $photo['filename']);
|
||||||
$height = $picture->getHeight();
|
$height = $picture->getHeight();
|
||||||
$width = $picture->getWidth();
|
$width = $picture->getWidth();
|
||||||
$size = strlen($content);
|
$size = strlen($content);
|
||||||
|
|
|
@ -308,7 +308,7 @@ function twitter_upload_image(int $uid, array $image, int $retrial)
|
||||||
|
|
||||||
$picturedata = Photo::getImageForPhoto($photo);
|
$picturedata = Photo::getImageForPhoto($photo);
|
||||||
|
|
||||||
$picture = new Image($picturedata, $photo['type']);
|
$picture = new Image($picturedata, $photo['type'], $photo['filename']);
|
||||||
$height = $picture->getHeight();
|
$height = $picture->getHeight();
|
||||||
$width = $picture->getWidth();
|
$width = $picture->getWidth();
|
||||||
$size = strlen($picturedata);
|
$size = strlen($picturedata);
|
||||||
|
|
Loading…
Reference in a new issue