Skip to content

Commit

Permalink
Merge pull request #35891 from nextcloud/fix/34755/disable-setimagefo…
Browse files Browse the repository at this point in the history
…rmat

avatar generation - disable setimageformat
  • Loading branch information
szaimen authored Dec 27, 2022
2 parents 30d2088 + a0f2180 commit b90ccaa
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 b90ccaa

Please sign in to comment.