Merge pull request #424 from fermionic/rotate-direction-wrong
ImageMagick rotates CW while imagerotate() rotates CCW
This commit is contained in:
commit
e840184446
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user