Merge pull request #40921 from nextcloud/backport/40709/stable26

[stable26] LDAP: Increase profile picture limit to 512
This commit is contained in:
Arthur Schiwon 2023-11-15 21:35:16 +01:00 committed by GitHub
commit c8f1141ef1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -578,8 +578,8 @@ class User {
}
//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;