Browse Source

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

pull/40630/head
Daniel 2 years ago
committed by GitHub
parent
commit
ee590ab5a9
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      apps/user_ldap/lib/User/User.php

4
apps/user_ldap/lib/User/User.php

@ -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;

Loading…
Cancel
Save