round width and height when cropping avatar
This commit is contained in:
parent
2a8c3798a8
commit
bd1d7107bb
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue