X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModule%2FPhoto.php;h=64d9e3542ae0f29836745dd0e9c389646a167892;hb=1792046a4f270f15d904d591c1e9eb0444ff2349;hp=ca27406067f886ad26ef8139a651c890e9822358;hpb=997319a41f3ed060e367cf6327c2e1c6f9a04fe9;p=friendica.git diff --git a/src/Module/Photo.php b/src/Module/Photo.php index ca27406067..64d9e3542a 100644 --- a/src/Module/Photo.php +++ b/src/Module/Photo.php @@ -28,6 +28,7 @@ use Friendica\DI; use Friendica\Model\Contact; use Friendica\Model\Photo as MPhoto; use Friendica\Util\Proxy; +use Friendica\Object\Image; /** * Photo Module @@ -112,7 +113,7 @@ class Photo extends BaseModule // if customsize is set and image is not a gif, resize it if ($photo['type'] !== "image/gif" && $customsize > 0 && $customsize < 501) { - $img = MPhoto::getImageForPhoto($photo); + $img = new Image($imgdata, $photo['type']); $img->scaleToSquare($customsize); $imgdata = $img->asString(); }