From 95610cb3eff5a6bde2ed3bd4141021ef554c3a69 Mon Sep 17 00:00:00 2001 From: flashwave Date: Sat, 19 Mar 2022 19:53:44 +0000 Subject: [PATCH] Fixed stupid conversions. --- src/Imaging/Image.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Imaging/Image.php b/src/Imaging/Image.php index 60aaa6ea..850ff965 100644 --- a/src/Imaging/Image.php +++ b/src/Imaging/Image.php @@ -47,8 +47,8 @@ abstract class Image { $this->resize($targetWidth, $targetHeight); $this->crop( $dimensions, $dimensions, - ($targetWidth - $dimensions) / 2, - ($targetHeight - $dimensions) / 2 + ceil(($targetWidth - $dimensions) / 2), + ceil(($targetHeight - $dimensions) / 2) ); $this->setPage($dimensions, $dimensions, 0, 0); } while($this->next());