Resolves#1069
The Matrix spec requires servers to provide thumbnails at (96x96, crop) and (320x240, scale) among others. [1] The avatars in Nheko's global/room profile and room settings are sized 130x130 on normal scaling and 260x260 on 2x scaling like on a HiDPI device. In both cases the avatar is requested as cropped and that way displayed at 96x96, making it look blurry.
This can be solved by requesting scaled avatars rather than cropped where appropriate, and cropping to the requested size afterwards.
HiDPI can be simulated in Qt by setting QT_SCALE_FACTOR=2.
[1] https://spec.matrix.org/v1.3/client-server-api/#thumbnails
Currently translated at 22.9% (177 of 772 strings)
Translated using Weblate (Chinese (Simplified))
Currently translated at 22.9% (177 of 772 strings)
Translated using Weblate (Chinese (Simplified))
Currently translated at 22.9% (177 of 772 strings)
Translated using Weblate (Chinese (Simplified))
Currently translated at 22.9% (177 of 772 strings)
Co-authored-by: Nekogawa Mio <mio@lolic.at>
Co-authored-by: Reiuji Utsuho <netap495l@gmail.com>
Co-authored-by: hulb <hulb@live.cn>
Co-authored-by: ling <xll520yzl@gmail.com>
Translate-URL: https://weblate.nheko.im/projects/nheko/nheko-master/zh_Hans/
Translation: Nheko/nheko
Currently translated at 13.7% (106 of 772 strings)
Translated using Weblate (Chinese (Simplified))
Currently translated at 13.7% (106 of 772 strings)
Translated using Weblate (Chinese (Simplified))
Currently translated at 13.7% (106 of 772 strings)
Translated using Weblate (Chinese (Simplified))
Currently translated at 13.7% (106 of 772 strings)
Co-authored-by: Nekogawa Mio <mio@lolic.at>
Co-authored-by: Reiuji Utsuho <netap495l@gmail.com>
Co-authored-by: hulb <hulb@live.cn>
Co-authored-by: ling <xll520yzl@gmail.com>
Translate-URL: https://weblate.nheko.im/projects/nheko/nheko-master/zh_Hans/
Translation: Nheko/nheko