ImageMagick rotates CW while imagerotate() rotates CCW

This commit is contained in:
Zach Prezkuta 2012-08-04 17:30:25 -06:00
parent 0c67649c08
commit ba66e17d1d
1 changed files with 1 additions and 1 deletions

View File

@ -247,7 +247,7 @@ class Photo {
if($this->is_imagick()) { if($this->is_imagick()) {
$this->image->setFirstIterator(); $this->image->setFirstIterator();
do { 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()); } while ($this->image->nextImage());
return; return;
} }