From ba66e17d1d8ce6400db7a63d16a004c1a5898820 Mon Sep 17 00:00:00 2001 From: Zach Prezkuta Date: Sat, 4 Aug 2012 17:30:25 -0600 Subject: [PATCH] ImageMagick rotates CW while imagerotate() rotates CCW --- include/Photo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }