X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2FPhoto.php;h=fce55999961c3f5d377c367eb69ab14a8f40d9f9;hb=bd12902d7b384c4ba38ae40c4fa1f34f7e5393b4;hp=4d02b5c651206359d565598b193057924ba92a74;hpb=894278dbcc83857a9140a03eb6064c642b5ce293;p=friendica.git diff --git a/include/Photo.php b/include/Photo.php old mode 100755 new mode 100644 index 4d02b5c651..fce5599996 --- 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) {