From: Maximilian Mader Date: Sat, 28 Apr 2018 19:37:11 +0000 (+0200) Subject: Change the DefaultAvatar’s size to 128x128 pixels X-Git-Tag: 3.1.3~18^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4b76cb03fbaabb5e7a4724bd2fe3231b7b2751b3;p=GitHub%2FWoltLab%2FWCF.git Change the DefaultAvatar’s size to 128x128 pixels Change the DefaultAvatar’s size to a more reasonable size of 128x128 pixels. Throughout the Suite Core avatars are usually embedded via the `getImageTag` function but when using the direct avatar URL a larger image is usually wanted. Firefox for example does not upscale images used in `window.Notification` thus the avatar would be rendered as a tiny 16x16 image in this case. This change allows to downscale accordingly in this case. --- diff --git a/wcfsetup/install/files/lib/data/user/avatar/DefaultAvatar.class.php b/wcfsetup/install/files/lib/data/user/avatar/DefaultAvatar.class.php index 3c8cc98d37..67d58710ce 100644 --- a/wcfsetup/install/files/lib/data/user/avatar/DefaultAvatar.class.php +++ b/wcfsetup/install/files/lib/data/user/avatar/DefaultAvatar.class.php @@ -56,7 +56,7 @@ class DefaultAvatar implements IUserAvatar { // the is basically a shorter version of a $svg = <<{$text} +{$text} SVG; $this->src = "data:image/svg+xml;base64," . base64_encode($svg);