From 66f6e94d7d1a4480f991e8afac50feffb514437d 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 635c0df6dfe..2b9924fa5c9 100644 --- a/apps/user_ldap/lib/User/User.php +++ b/apps/user_ldap/lib/User/User.php @@ -740,7 +740,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; -- 2.39.5