Bluesky/Twitter: New parameter added for rhe picture creation #1465

Merged
tobias merged 1 commit from heluecht/friendica-addons:images into 2024.03-rc 2024-02-17 07:47:00 +01:00
2 changed files with 2 additions and 2 deletions
Showing only changes of commit f678468d42 - Show all commits

View file

@ -896,7 +896,7 @@ function bluesky_upload_blob(int $uid, array $photo): ?stdClass
$retrial = Worker::getRetrial();
$content = Photo::getImageForPhoto($photo);
$picture = new Image($content, $photo['type']);
$picture = new Image($content, $photo['type'], $photo['filename']);
$height = $picture->getHeight();
$width = $picture->getWidth();
$size = strlen($content);

View file

@ -308,7 +308,7 @@ function twitter_upload_image(int $uid, array $image, int $retrial)
$picturedata = Photo::getImageForPhoto($photo);
$picture = new Image($picturedata, $photo['type']);
$picture = new Image($picturedata, $photo['type'], $photo['filename']);
$height = $picture->getHeight();
$width = $picture->getWidth();
$size = strlen($picturedata);