Merge pull request #40709 from nextcloud/fix/ldap-profile-pic-resolution-master

This commit is contained in:
Daniel 2023-09-30 22:43:11 +02:00 committed by GitHub
commit ee590ab5a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -739,8 +739,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;