Skip to content
Snippets Groups Projects
This project is mirrored from https://github.com/Nheko-Reborn/nheko.git. Pull mirroring updated .
  1. 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
  2. Apr 14, 2022
  3. Mar 22, 2022
  4. Jan 04, 2022
  5. Jan 01, 2022
  6. Dec 29, 2021
  7. Dec 28, 2021
  8. Dec 27, 2021
  9. Dec 08, 2021
  10. Sep 17, 2021
  11. Aug 16, 2021
  12. Aug 14, 2021
  13. Aug 06, 2021
  14. Jul 21, 2021
  15. Apr 03, 2021
  16. Mar 17, 2021
  17. Mar 05, 2021
  18. Dec 25, 2020
  19. Oct 27, 2020
  20. Sep 16, 2020
  21. Jun 07, 2020
  22. Apr 26, 2020
    • Nicolas Werner's avatar
      Respect exif rotation of images · 28adc9dc
      Nicolas Werner authored
      Sometimes thumbnails still have the wrong dimensions, as they are scaled
      to fit inside a rectange of the reported size in the image. Not sure,
      who is wrong there, the media repo or we.
      28adc9dc
  23. Dec 15, 2019
  24. Dec 03, 2019
  25. Nov 23, 2019
Loading