mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 17:23:59 -04:00
another approach to fixing the avatar generation
Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
parent
3e6e075358
commit
95b3b5dcc2
1 changed files with 5 additions and 0 deletions
|
|
@ -129,6 +129,11 @@ abstract class Avatar implements IAvatar {
|
|||
if (!extension_loaded('imagick')) {
|
||||
return null;
|
||||
}
|
||||
$formats = Imagick::queryFormats();
|
||||
// Avatar generation breaks if RSVG format is enabled. Fall back to gd in that case
|
||||
if (in_array("RSVG", $formats, true)) {
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
$font = __DIR__ . '/../../../core/fonts/NotoSans-Regular.ttf';
|
||||
$svg = $this->getAvatarVector($size, $darkTheme);
|
||||
|
|
|
|||
Loading…
Reference in a new issue