Skip to content
Snippets Groups Projects
This project is mirrored from https://github.com/Nheko-Reborn/nheko.git. Pull mirroring updated .
  1. Jul 20, 2022
  2. Jul 19, 2022
  3. Jul 18, 2022
  4. Jul 16, 2022
  5. Jul 15, 2022
  6. Jul 11, 2022
  7. Jul 10, 2022
  8. Jul 09, 2022
  9. Jul 08, 2022
  10. Jul 05, 2022
  11. Jul 01, 2022
  12. Jun 30, 2022
  13. Jun 28, 2022
  14. Jun 26, 2022
    • brausepulver's avatar
      Get large avatar images as scale and crop locally (#1107) · 98de5104
      brausepulver authored
      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
      Unverified
      98de5104
Loading