diff options
author | Simon L <szaimen@e.mail.de> | 2022-12-29 11:05:17 +0100 |
---|---|---|
committer | Simon L <szaimen@e.mail.de> | 2022-12-29 11:06:22 +0100 |
commit | f57a81027633de9a377b4eac27188b06d97e9ff5 (patch) | |
tree | 3326ebc2721b54fefafb5188f7ea65dfb3438a9c /lib | |
parent | 0558f4cb26ddf790ad32cfef9e62367bde4951c3 (diff) | |
download | nextcloud-server-f57a81027633de9a377b4eac27188b06d97e9ff5.tar.gz nextcloud-server-f57a81027633de9a377b4eac27188b06d97e9ff5.zip |
Revert "avatar generation - disable setimageformat"
Signed-off-by: Simon L <szaimen@e.mail.de>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Avatar/Avatar.php | 3 |
1 files changed, 1 insertions, 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(); |