Fixed avatar changing issue.
This commit is contained in:
parent
469b4f7859
commit
59edead442
1 changed files with 3 additions and 0 deletions
|
@ -40,6 +40,9 @@ abstract class Image {
|
|||
$targetHeight = $originalHeight * $dimensions / $originalWidth;
|
||||
}
|
||||
|
||||
$targetWidth = intval($targetWidth);
|
||||
$targetHeight = intval($targetHeight);
|
||||
|
||||
do {
|
||||
$this->resize($targetWidth, $targetHeight);
|
||||
$this->crop(
|
||||
|
|
Loading…
Add table
Reference in a new issue