]> git.mxchange.org Git - friendica.git/commitdiff
Fixed width and height not updated when image rotation is done by EXIF based orient...
authorMarek Bachmann <marek.bachmann@comtec.eecs.uni-kassel.de>
Wed, 28 Dec 2022 20:43:34 +0000 (21:43 +0100)
committerMarek Bachmann <marek.bachmann@comtec.eecs.uni-kassel.de>
Wed, 28 Dec 2022 20:43:34 +0000 (21:43 +0100)
src/Object/Image.php

index 62bc8d897f606be22da30cd7536d268bb2cb5736..db17e0e253d0d842c832d5e9d4fce8ebc52c8e78 100644 (file)
@@ -378,13 +378,13 @@ class Image
                        $orientation = $this->image->getImageOrientation();
                        switch ($orientation) {
                                case Imagick::ORIENTATION_BOTTOMRIGHT:
-                                       $this->image->rotateimage("#000", 180);
+                                       $this->rotate( 180);
                                        break;
                                case Imagick::ORIENTATION_RIGHTTOP:
-                                       $this->image->rotateimage("#000", 90);
+                                       $this->rotate( -90);
                                        break;
                                case Imagick::ORIENTATION_LEFTBOTTOM:
-                                       $this->image->rotateimage("#000", -90);
+                                       $this->rotate(90);
                                        break;
                        }