From: Marek Bachmann Date: Wed, 28 Dec 2022 20:43:34 +0000 (+0100) Subject: Fixed width and height not updated when image rotation is done by EXIF based orient... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=19b8b389fd0131212ecc02efc5a2161c0a22c2fd;p=friendica.git Fixed width and height not updated when image rotation is done by EXIF based orient method --- diff --git a/src/Object/Image.php b/src/Object/Image.php index 62bc8d897f..db17e0e253 100644 --- a/src/Object/Image.php +++ b/src/Object/Image.php @@ -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; }