Merge pull request #12558 from MarekBenjamin/fix-disorted-portraits

Fixed width and height not updated when image rotation is done by EXIF based orient method
This commit is contained in:
Hypolite Petovan 2022-12-28 17:30:47 -05:00 committed by GitHub
commit 59b5d080d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View 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;
}