Permalink
Browse files

ImageMagick rotates CW while imagerotate() rotates CCW

  • Loading branch information...
1 parent 0c67649 commit ba66e17d1d8ce6400db7a63d16a004c1a5898820 @fermionic committed Aug 4, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 include/Photo.php
View
@@ -247,7 +247,7 @@ public function rotate($degrees) {
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;
}

0 comments on commit ba66e17

Please sign in to comment.