Commit 968fca8b authored by Morris Jobke's avatar Morris Jobke
Browse files

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

round width and height when cropping avatar
parents 965d97a8 bd1d7107
......@@ -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);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment