mirror of
https://github.com/nextcloud/server.git
synced 2026-06-12 10:10:49 -04:00
Merge pull request #35895 from nextcloud/backport/35891/stable25
[stable25] avatar generation - disable setimageformat
This commit is contained in:
commit
8d53b82a2d
1 changed files with 2 additions and 1 deletions
|
|
@ -135,7 +135,8 @@ abstract class Avatar implements IAvatar {
|
|||
$avatar = new Imagick();
|
||||
$avatar->setFont($font);
|
||||
$avatar->readImageBlob($svg);
|
||||
$avatar->setImageFormat('png');
|
||||
// Disabled since it breaks avatar generation on some instances
|
||||
// $avatar->setImageFormat('png');
|
||||
$image = new \OCP\Image();
|
||||
$image->loadFromData((string)$avatar);
|
||||
return $image->data();
|
||||
|
|
|
|||
Loading…
Reference in a new issue