X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2FPhoto.php;h=fce55999961c3f5d377c367eb69ab14a8f40d9f9;hb=598a2563e844477de2f688663c7c46962b26b602;hp=4d02b5c651206359d565598b193057924ba92a74;hpb=43d5876e8b35d53a0bef5248c5d63e5bc209dbbf;p=friendica.git diff --git a/include/Photo.php b/include/Photo.php index 4d02b5c651..fce5599996 100644 --- a/include/Photo.php +++ b/include/Photo.php @@ -87,6 +87,12 @@ class Photo { } + public function rotate($degrees) { + $this->image = imagerotate($this->image,$degrees,0); + $this->width = imagesx($this->image); + $this->height = imagesy($this->image); + } + public function scaleImageUp($min) {