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());