From bd1d7107bb31314cf3d7bb66c22b709fecb63333 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Fri, 20 Mar 2015 04:08:24 +0100 Subject: [PATCH] round width and height when cropping avatar --- core/avatar/avatarcontroller.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/avatar/avatarcontroller.php b/core/avatar/avatarcontroller.php index f63e02b776..0aefc336ee 100644 --- a/core/avatar/avatarcontroller.php +++ b/core/avatar/avatarcontroller.php @@ -244,7 +244,7 @@ class AvatarController extends Controller { } $image = new \OC_Image($tmpAvatar); - $image->crop($crop['x'], $crop['y'], $crop['w'], $crop['h']); + $image->crop($crop['x'], $crop['y'], round($crop['w']), round($crop['h'])); try { $avatar = $this->avatarManager->getAvatar($userId); $avatar->set($image);