Skip to content

Commit

Permalink
avatar generation - disable setimageformat
Browse files Browse the repository at this point in the history
Signed-off-by: Simon L <szaimen@e.mail.de>
  • Loading branch information
szaimen committed Dec 27, 2022
1 parent c31e0e3 commit a0f2180
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/private/Avatar/Avatar.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,8 @@ protected function generateAvatarFromSvg(int $size, bool $darkTheme): ?string {
$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();
Expand Down

0 comments on commit a0f2180

Please sign in to comment.