matrixion/src
brausepulver 98de51042a
Get large avatar images as scale and crop locally (#1107)
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
2022-06-26 18:32:43 +00:00
..
dbus Remove redundant alias function 2022-06-17 03:14:48 +02:00
dialogs Add backend for new room creation dialogs 2022-03-29 20:51:18 +02:00
dock Add some logging to dock 2022-06-05 16:26:31 +02:00
emoji Speedup provider compilation 2022-06-16 00:49:12 +02:00
encryption Request full online keybackup when turning it on 2022-06-19 16:37:00 +02:00
notifications Use right linter 2022-05-10 03:53:35 +02:00
timeline Fix timestamps after loading 2022-06-26 01:48:16 +02:00
ui Remove a few more headers 2022-06-18 02:31:01 +02:00
voip Fix bad format string 2022-05-19 22:08:27 +02:00
AvatarProvider.cpp Update year in copyright notice to shut up lint job 2022-01-01 04:57:53 +01:00
AvatarProvider.h Update year in copyright notice to shut up lint job 2022-01-01 04:57:53 +01:00
BlurhashProvider.cpp Update year in copyright notice to shut up lint job 2022-01-01 04:57:53 +01:00
BlurhashProvider.h Use right linter 2022-05-10 03:53:35 +02:00
Cache.cpp Fix timestamps after loading 2022-06-26 01:48:16 +02:00
Cache.h Update year in copyright notice to shut up lint job 2022-01-01 04:57:53 +01:00
Cache_p.h Fix timestamps after loading 2022-06-26 01:48:16 +02:00
CacheCryptoStructs.h Use right linter 2022-05-10 03:53:35 +02:00
CacheStructs.h Speedup startup by caching last message timestamp 2022-06-15 02:13:17 +02:00
ChatPage.cpp Remove a few more headers 2022-06-18 02:31:01 +02:00
ChatPage.h Remove a few more headers 2022-06-18 02:31:01 +02:00
Clipboard.cpp Update year in copyright notice to shut up lint job 2022-01-01 04:57:53 +01:00
Clipboard.h Update year in copyright notice to shut up lint job 2022-01-01 04:57:53 +01:00
ColorImageProvider.cpp Update year in copyright notice to shut up lint job 2022-01-01 04:57:53 +01:00
ColorImageProvider.h Use right linter 2022-05-10 03:53:35 +02:00
CombinedImagePackModel.cpp Fix height attribute for emotes 2022-06-13 11:12:21 +02:00
CombinedImagePackModel.h Default body to shortcode if unset and sending sticker 2022-03-22 19:45:25 +01:00
CompletionModelRoles.h Update year in copyright notice to shut up lint job 2022-01-01 04:57:53 +01:00
CompletionProxyModel.cpp split point is pointless 2022-01-31 21:47:23 +01:00
CompletionProxyModel.h Update year in copyright notice to shut up lint job 2022-01-01 04:57:53 +01:00
Config.h Remove a few unused variables 2022-03-30 06:53:55 +02:00
EventAccessors.cpp Fix thumbnails for encrypted files and factor upload box out 2022-03-21 05:49:12 +01:00
EventAccessors.h Use right linter 2022-05-10 03:53:35 +02:00
ImagePackListModel.cpp Update year in copyright notice to shut up lint job 2022-01-01 04:57:53 +01:00
ImagePackListModel.h Update year in copyright notice to shut up lint job 2022-01-01 04:57:53 +01:00
InviteesModel.cpp Use right linter 2022-05-10 03:53:35 +02:00
InviteesModel.h Update year in copyright notice to shut up lint job 2022-01-01 04:57:53 +01:00
JdenticonProvider.cpp Use right linter 2022-05-10 03:53:35 +02:00
JdenticonProvider.h Update year in copyright notice to shut up lint job 2022-01-01 04:57:53 +01:00
Logging.cpp Add mtxclient to logging 2022-05-08 01:35:35 +02:00
Logging.h Fix compilation without implicit nlohmann conversions 2022-06-17 03:14:48 +02:00
LoginPage.cpp Require matrix v1.1 or greater 2022-06-25 16:16:54 +02:00
LoginPage.h Allow explicit selection of SSO method 2022-03-06 19:51:17 +01:00
main.cpp Use right linter 2022-05-10 03:53:35 +02:00
MainWindow.cpp Simplify includes a bit 2022-06-16 01:19:26 +02:00
MainWindow.h Unread messages count as an Unity compatible badge (#1085) 2022-06-05 11:51:29 +00:00
MatrixClient.cpp Remove remaining groups code 2022-06-17 19:51:08 +02:00
MatrixClient.h Update year in copyright notice to shut up lint job 2022-01-01 04:57:53 +01:00
MemberList.cpp Show powerlevels in memberlist 2022-05-07 02:30:16 +02:00
MemberList.h Fix filtering without using regex 2022-04-23 14:53:36 +02:00
MxcImageProvider.cpp Get large avatar images as scale and crop locally (#1107) 2022-06-26 18:32:43 +00:00
MxcImageProvider.h Use right linter 2022-05-10 03:53:35 +02:00
PowerlevelsEditModels.cpp Add an option to define new power levels 2022-06-26 00:09:00 +02:00
PowerlevelsEditModels.h Add an option to define new power levels 2022-06-26 00:09:00 +02:00
ReadReceiptsModel.cpp Update year in copyright notice to shut up lint job 2022-01-01 04:57:53 +01:00
ReadReceiptsModel.h Update year in copyright notice to shut up lint job 2022-01-01 04:57:53 +01:00
RegisterPage.cpp Require matrix v1.1 or greater 2022-06-25 16:16:54 +02:00
RegisterPage.h Fix linting 2022-06-25 18:07:55 +02:00
RoomDirectoryModel.cpp Remove a few more headers 2022-06-18 02:31:01 +02:00
RoomDirectoryModel.h Remove a few more headers 2022-06-18 02:31:01 +02:00
RoomsModel.cpp Remove redundant alias function 2022-06-17 03:14:48 +02:00
RoomsModel.h Update year in copyright notice to shut up lint job 2022-01-01 04:57:53 +01:00
SingleImagePackModel.cpp Remove a few more headers 2022-06-18 02:31:01 +02:00
SingleImagePackModel.h Update year in copyright notice to shut up lint job 2022-01-01 04:57:53 +01:00
SSOHandler.cpp Update year in copyright notice to shut up lint job 2022-01-01 04:57:53 +01:00
SSOHandler.h Update year in copyright notice to shut up lint job 2022-01-01 04:57:53 +01:00
TrayIcon.cpp Initial qml root window 2022-01-26 21:44:13 +01:00
TrayIcon.h Initial qml root window 2022-01-26 21:44:13 +01:00
UserSettingsPage.cpp Request full online keybackup when turning it on 2022-06-19 16:37:00 +02:00
UserSettingsPage.h Remove a few more headers 2022-06-18 02:31:01 +02:00
UsersModel.cpp Update year in copyright notice to shut up lint job 2022-01-01 04:57:53 +01:00
UsersModel.h Update year in copyright notice to shut up lint job 2022-01-01 04:57:53 +01:00
Utils.cpp Fix centering dialogs 2022-01-29 19:07:27 +01:00
Utils.h Fix centering dialogs 2022-01-29 19:07:27 +01:00