mirror of
https://github.com/nextcloud/server.git
synced 2026-04-26 00:27:49 -04:00
Revert "avatar generation - disable setimageformat"
Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
parent
0558f4cb26
commit
f57a810276
1 changed files with 1 additions and 2 deletions
|
|
@ -135,8 +135,7 @@ abstract class Avatar implements IAvatar {
|
|||
$avatar = new Imagick();
|
||||
$avatar->setFont($font);
|
||||
$avatar->readImageBlob($svg);
|
||||
// Disabled since it breaks avatar generation on some instances
|
||||
// $avatar->setImageFormat('png');
|
||||
$avatar->setImageFormat('png');
|
||||
$image = new \OCP\Image();
|
||||
$image->loadFromData((string)$avatar);
|
||||
return $image->data();
|
||||
|
|
|
|||
Loading…
Reference in a new issue