From 66f6e94d7d1a4480f991e8afac50feffb514437d Mon Sep 17 00:00:00 2001 From: Marcel Klehr Date: Tue, 5 Sep 2023 11:24:54 +0200 Subject: [PATCH 1/2] 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 635c0df6dfe2f..2b9924fa5c934 100644 --- a/apps/user_ldap/lib/User/User.php +++ b/apps/user_ldap/lib/User/User.php @@ -740,7 +740,7 @@ private function setOwnCloudAvatar() { //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; From 7f5b61c66d105737cfcf87489ed7c049f19ca34e Mon Sep 17 00:00:00 2001 From: Marcel Klehr Date: Fri, 29 Sep 2023 13:48:06 +0200 Subject: [PATCH 2/2] Update apps/user_ldap/lib/User/User.php Co-authored-by: Arthur Schiwon 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 2b9924fa5c934..214b475e2e45b 100644 --- a/apps/user_ldap/lib/User/User.php +++ b/apps/user_ldap/lib/User/User.php @@ -739,7 +739,7 @@ private function setOwnCloudAvatar() { } - //make sure it is a square and not bigger than 128x128 + //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']);