]> git.mxchange.org Git - friendica.git/commitdiff
ImageMagick rotates CW while imagerotate() rotates CCW
authorZach Prezkuta <fermion@gmx.com>
Sat, 4 Aug 2012 23:30:25 +0000 (17:30 -0600)
committerZach Prezkuta <fermion@gmx.com>
Sat, 4 Aug 2012 23:30:25 +0000 (17:30 -0600)
include/Photo.php

index 1f751c77f3f85ae0cb24c86229e31407125f6bd6..74d4c746d6f89eefbd05f4326f95d18be8e03d99 100644 (file)
@@ -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;
         }