Switch guest avatars to PNG
Signed-off-by: Michael Weimann <mail@michael-weimann.eu>
This commit is contained in:
parent
bf1253cb49
commit
2a8118e459
3 changed files with 3 additions and 3 deletions
|
@ -90,8 +90,8 @@ class GuestAvatar extends Avatar {
|
|||
* @return InMemoryFile
|
||||
*/
|
||||
public function getFile($size) {
|
||||
$avatar = $this->getAvatarVector($size);
|
||||
return new InMemoryFile('avatar.svg', $avatar);
|
||||
$avatar = $this->generateAvatar($this->userDisplayName, $size);
|
||||
return new InMemoryFile('avatar.png', $avatar);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
BIN
tests/data/guest_avatar_einstein_32.png
Normal file
BIN
tests/data/guest_avatar_einstein_32.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 263 B |
|
@ -64,7 +64,7 @@ class GuestAvatarTest extends TestCase {
|
|||
$avatar = $this->guestAvatar->getFile(32);
|
||||
self::assertInstanceOf(InMemoryFile::class, $avatar);
|
||||
$expectedFile = file_get_contents(
|
||||
__DIR__ . '/../../data/guest_avatar_einstein_32.svg'
|
||||
__DIR__ . '/../../data/guest_avatar_einstein_32.png'
|
||||
);
|
||||
self::assertEquals(trim($expectedFile), trim($avatar->getContent()));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue