Explorar el Código

Merge pull request #35913 from nextcloud/revert-35891-fix/34755/disable-setimageformat

Revert "avatar generation - disable setimageformat"
tags/v26.0.0beta1
Simon L hace 1 año
padre
commit
9cef2c0745
No account linked to committer's email address
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  1. 1
    2
      lib/private/Avatar/Avatar.php

+ 1
- 2
lib/private/Avatar/Avatar.php Ver fichero

@@ -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();

Cargando…
Cancelar
Guardar