Merge pull request #15048 from owncloud/avatar-crop-square

round width and height when cropping avatar
This commit is contained in:
Morris Jobke 2015-03-24 15:23:14 +01:00
commit 968fca8b55
1 changed files with 1 additions and 1 deletions

View File

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