summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2015-03-20 04:08:24 +0100
committerRobin Appelman <icewind@owncloud.com>2015-03-20 04:08:24 +0100
commitbd1d7107bb31314cf3d7bb66c22b709fecb63333 (patch)
tree961d733732a3e5b8600189a764bef6e44ac72631
parent2a8c3798a8e43e1215c476815c3f7fa79d5ba91f (diff)
downloadnextcloud-server-bd1d7107bb31314cf3d7bb66c22b709fecb63333.tar.gz
nextcloud-server-bd1d7107bb31314cf3d7bb66c22b709fecb63333.zip
round width and height when cropping avatar
-rw-r--r--core/avatar/avatarcontroller.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/avatar/avatarcontroller.php b/core/avatar/avatarcontroller.php
index f63e02b7761..0aefc336eeb 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);