mirror of
https://gitee.com/niucloud-team/niucloud-admin.git
synced 2025-12-11 02:12:48 +00:00
Update Editor.php
This commit is contained in:
parent
a12b495d74
commit
7a410a6c77
@ -657,7 +657,7 @@ final class Editor implements EditorInterface
|
||||
if (($resizeWidth > $newWidth) or ($resizeHeight > $newHeight)) { // Oops, either with or height does not fit
|
||||
// So base on height instead
|
||||
$resizeHeight = $newHeight;
|
||||
$resizeWidth = $newHeight * $ratio;
|
||||
$resizeWidth = round($newHeight * $ratio);
|
||||
}
|
||||
|
||||
$this->_resize($image, round($resizeWidth, 2), round($resizeHeight, 2));
|
||||
@ -1176,4 +1176,4 @@ final class Editor implements EditorInterface
|
||||
|
||||
return array($x,$y);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user