aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-05-23 01:01:04 -0700
committerfriendica <info@friendica.com>2012-05-23 01:01:04 -0700
commit61dba985c14ebcfd20d18b579aee9b781f98bc23 (patch)
tree93cd7fe6c2b9b0cc5851cb8324b5f6591d990f7f /include
parent8ffb65ceef4de1b1088ace577682812cba6016af (diff)
downloadvolse-hubzilla-61dba985c14ebcfd20d18b579aee9b781f98bc23.tar.gz
volse-hubzilla-61dba985c14ebcfd20d18b579aee9b781f98bc23.tar.bz2
volse-hubzilla-61dba985c14ebcfd20d18b579aee9b781f98bc23.zip
photo rotation
Diffstat (limited to 'include')
-rw-r--r--include/Photo.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/Photo.php b/include/Photo.php
index 4d02b5c65..fce559999 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) {