Skip to content

Commit c8f1141

Browse files
authored
Merge pull request #40921 from nextcloud/backport/40709/stable26
[stable26] LDAP: Increase profile picture limit to 512
2 parents 1cdd501 + de296a4 commit c8f1141

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

apps/user_ldap/lib/User/User.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -578,8 +578,8 @@ private function setOwnCloudAvatar() {
578578
}
579579

580580

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

0 commit comments

Comments
 (0)