From f57a81027633de9a377b4eac27188b06d97e9ff5 Mon Sep 17 00:00:00 2001 From: Simon L Date: Thu, 29 Dec 2022 11:05:17 +0100 Subject: [PATCH] Revert "avatar generation - disable setimageformat" Signed-off-by: Simon L --- lib/private/Avatar/Avatar.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/private/Avatar/Avatar.php b/lib/private/Avatar/Avatar.php index 791cb8b2e7f..9b9220936eb 100644 --- a/lib/private/Avatar/Avatar.php +++ b/lib/private/Avatar/Avatar.php @@ -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(); -- 2.39.5