mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
avatar generation - disable setimageformat
Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
parent
c31e0e3f45
commit
a0f21800fe
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