summaryrefslogtreecommitdiffstats
path: root/core/avatar
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2015-03-24 15:23:14 +0100
committerMorris Jobke <hey@morrisjobke.de>2015-03-24 15:23:14 +0100
commit968fca8b55ceb589bed0b73adf955f6c2950d9c3 (patch)
treeebe398a5802926af9d199411271011b3cfcdcaea /core/avatar
parent965d97a8f582984c2d2454d7c62faa2086ac677c (diff)
parentbd1d7107bb31314cf3d7bb66c22b709fecb63333 (diff)
downloadnextcloud-server-968fca8b55ceb589bed0b73adf955f6c2950d9c3.tar.gz
nextcloud-server-968fca8b55ceb589bed0b73adf955f6c2950d9c3.zip
Merge pull request #15048 from owncloud/avatar-crop-square
round width and height when cropping avatar
Diffstat (limited to 'core/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 b63c8ad53b5..767013e8db0 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);