Skip to content

Commit

Permalink
Merge pull request #40921 from nextcloud/backport/40709/stable26
Browse files Browse the repository at this point in the history
[stable26] LDAP: Increase profile picture limit to 512
  • Loading branch information
blizzz authored Nov 15, 2023
2 parents 1cdd501 + de296a4 commit c8f1141
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/user_ldap/lib/User/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -578,8 +578,8 @@ private function setOwnCloudAvatar() {
}


//make sure it is a square and not bigger than 128x128
$size = min([$this->image->width(), $this->image->height(), 128]);
//make sure it is a square and not bigger than 512x512
$size = min([$this->image->width(), $this->image->height(), 512]);
if (!$this->image->centerCrop($size)) {
$this->logger->error('croping image for avatar failed for '.$this->dn, ['app' => 'user_ldap']);
return false;
Expand Down

0 comments on commit c8f1141

Please sign in to comment.