From: Zach Prezkuta Date: Sat, 4 Aug 2012 23:30:25 +0000 (-0600) Subject: ImageMagick rotates CW while imagerotate() rotates CCW X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ba66e17d1d8ce6400db7a63d16a004c1a5898820;p=friendica.git ImageMagick rotates CW while imagerotate() rotates CCW --- diff --git a/include/Photo.php b/include/Photo.php index 1f751c77f3..74d4c746d6 100644 --- a/include/Photo.php +++ b/include/Photo.php @@ -247,7 +247,7 @@ class Photo { if($this->is_imagick()) { $this->image->setFirstIterator(); do { - $this->image->rotateImage(new ImagickPixel(), $degrees); + $this->image->rotateImage(new ImagickPixel(), -$degrees); // ImageMagick rotates in the opposite direction of imagerotate() } while ($this->image->nextImage()); return; }