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:
commit
59b5d080d5
1 changed files with 3 additions and 3 deletions
|
@ -378,13 +378,13 @@ class Image
|
||||||
$orientation = $this->image->getImageOrientation();
|
$orientation = $this->image->getImageOrientation();
|
||||||
switch ($orientation) {
|
switch ($orientation) {
|
||||||
case Imagick::ORIENTATION_BOTTOMRIGHT:
|
case Imagick::ORIENTATION_BOTTOMRIGHT:
|
||||||
$this->image->rotateimage("#000", 180);
|
$this->rotate(180);
|
||||||
break;
|
break;
|
||||||
case Imagick::ORIENTATION_RIGHTTOP:
|
case Imagick::ORIENTATION_RIGHTTOP:
|
||||||
$this->image->rotateimage("#000", 90);
|
$this->rotate(-90);
|
||||||
break;
|
break;
|
||||||
case Imagick::ORIENTATION_LEFTBOTTOM:
|
case Imagick::ORIENTATION_LEFTBOTTOM:
|
||||||
$this->image->rotateimage("#000", -90);
|
$this->rotate(90);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue