mirror of
https://github.com/friendica/friendica
synced 2025-04-26 18:30:11 +00:00
photo rotation
This commit is contained in:
parent
8ffb65ceef
commit
61dba985c1
4 changed files with 75 additions and 4 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue