mirror of
https://github.com/nextcloud/server.git
synced 2024-08-31 05:58:34 +02:00
another approach to fixing the avatar generation
Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
parent
553b5a51f6
commit
6a91d105b9
@ -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 New Issue
Block a user