Fixed avatar changing issue.

This commit is contained in:
flash 2022-03-02 23:15:36 +00:00
parent 469b4f7859
commit 59edead442

View file

@ -40,6 +40,9 @@ abstract class Image {
$targetHeight = $originalHeight * $dimensions / $originalWidth;
}
$targetWidth = intval($targetWidth);
$targetHeight = intval($targetHeight);
do {
$this->resize($targetWidth, $targetHeight);
$this->crop(