diff options
author | Simon L <szaimen@e.mail.de> | 2022-12-27 16:11:12 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-27 16:11:12 +0100 |
commit | b90ccaac0f7abe85be3f4efa974d96296c3a250f (patch) | |
tree | 669abba4f53e3fe418c24196667b7126f4032286 | |
parent | 30d2088c125078e9352d2c339aa5772c761efc06 (diff) | |
parent | a0f21800feccb601f562c14b7fc9ce3654da6aed (diff) | |
download | nextcloud-server-b90ccaac0f7abe85be3f4efa974d96296c3a250f.tar.gz nextcloud-server-b90ccaac0f7abe85be3f4efa974d96296c3a250f.zip |
Merge pull request #35891 from nextcloud/fix/34755/disable-setimageformat
avatar generation - disable setimageformat
-rw-r--r-- | lib/private/Avatar/Avatar.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/Avatar/Avatar.php b/lib/private/Avatar/Avatar.php index 9b9220936eb..791cb8b2e7f 100644 --- a/lib/private/Avatar/Avatar.php +++ b/lib/private/Avatar/Avatar.php @@ -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(); |