From 59edead442a5ed18f7a8458e2f04c38f51f2da57 Mon Sep 17 00:00:00 2001 From: flashwave Date: Wed, 2 Mar 2022 23:15:36 +0000 Subject: [PATCH] Fixed avatar changing issue. --- src/Imaging/Image.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Imaging/Image.php b/src/Imaging/Image.php index c7c531c7..60aaa6ea 100644 --- a/src/Imaging/Image.php +++ b/src/Imaging/Image.php @@ -40,6 +40,9 @@ abstract class Image { $targetHeight = $originalHeight * $dimensions / $originalWidth; } + $targetWidth = intval($targetWidth); + $targetHeight = intval($targetHeight); + do { $this->resize($targetWidth, $targetHeight); $this->crop(