diff options
author | friendica <info@friendica.com> | 2012-05-23 01:01:04 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-05-23 01:01:04 -0700 |
commit | 61dba985c14ebcfd20d18b579aee9b781f98bc23 (patch) | |
tree | 93cd7fe6c2b9b0cc5851cb8324b5f6591d990f7f /include/Photo.php | |
parent | 8ffb65ceef4de1b1088ace577682812cba6016af (diff) | |
download | volse-hubzilla-61dba985c14ebcfd20d18b579aee9b781f98bc23.tar.gz volse-hubzilla-61dba985c14ebcfd20d18b579aee9b781f98bc23.tar.bz2 volse-hubzilla-61dba985c14ebcfd20d18b579aee9b781f98bc23.zip |
photo rotation
Diffstat (limited to 'include/Photo.php')
-rw-r--r-- | include/Photo.php | 6 |
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) { |