mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 17:23:59 -04:00
Merge pull request #35891 from nextcloud/fix/34755/disable-setimageformat
avatar generation - disable setimageformat
This commit is contained in:
commit
b90ccaac0f
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