From bd85053bf3375ea5cfcdbe1ba38372b79459a0ce Mon Sep 17 00:00:00 2001 From: Marcel Klehr Date: Tue, 5 Sep 2023 11:24:54 +0200 Subject: [PATCH] LDAP: Increase profile picture limit to 512 Signed-off-by: Marcel Klehr --- apps/user_ldap/lib/User/User.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/user_ldap/lib/User/User.php b/apps/user_ldap/lib/User/User.php index ea4e932fed9..e818a5024b1 100644 --- a/apps/user_ldap/lib/User/User.php +++ b/apps/user_ldap/lib/User/User.php @@ -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;