LDAP: Increase profile picture limit to 512

Signed-off-by: Marcel Klehr <mklehr@gmx.net>
This commit is contained in:
Marcel Klehr 2023-09-05 11:24:54 +02:00 committed by backportbot-nextcloud[bot]
parent b556f00a4a
commit bd85053bf3

View file

@ -579,7 +579,7 @@ class User {
//make sure it is a square and not bigger than 128x128
$size = min([$this->image->width(), $this->image->height(), 128]);
$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;