Skip to content

Commit

Permalink
Merge pull request #226 from Petitoto/master
Browse files Browse the repository at this point in the history
Add auto centerCrop() when updating avatar
  • Loading branch information
pulsejet authored Aug 30, 2023
2 parents 7b708d4 + a731006 commit bb0f1bf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/Service/LoginService.php
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,7 @@ private function updateBasicProfile(IUser $user, array $profile): void
if (200 === curl_getinfo($curl, CURLINFO_HTTP_CODE)) {
$image = new \OC_Image();
$image->loadFromData($raw);
$image->centerCrop();

$avatar->set($image);
}
Expand Down

0 comments on commit bb0f1bf

Please sign in to comment.