summaryrefslogtreecommitdiffstats
path: root/src/MxcImageProvider.cpp
AgeCommit message (Collapse)Author
2023-01-02A whole new year full of excitement and possibilities!Nicolas Werner
2022-12-13I don't see why this would have detached, but make clazy happyNicolas Werner
2022-12-13Fix image cache pruning intervalNicolas Werner
2022-12-13Add cache pruning for old image filesNicolas Werner
2022-10-27fix blurry thumbnailsNicolas Werner
2022-10-26lintNicolas Werner
2022-10-26Enable -WconversionNicolas Werner
2022-06-26Get large avatar images as scale and crop locally (#1107)brausepulver
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-04-14Add D-Bus API (#916)Loren Burkholder
This adds functionality for viewing joined rooms and activating rooms.
2022-03-22Fix thumbnails of received encrypted imagesNicolas Werner
2022-01-04Work around images with size 0 in infoNicolas Werner
fixes #875
2022-01-01Update year in copyright notice to shut up lint jobNicolas Werner
2021-12-29Reserve size of some containers we are fillingNicolas Werner
2021-12-29Reduce allocations using QStringLiteralNicolas Werner
2021-12-28Some qt6 prepNicolas Werner
2021-12-27MxcImageProvider: Only use scaledToHeight if width <= 0.tastytea
2021-12-27Request inline images in the right size and anti-alias themtastytea
- If an inline image has specified a height, add parameters to the image:// URI. - Add scaled to the parameters, the images would be cropped otherwise. - Extract the height from image:// URI and use it for requestSize. - Use scaledToHeight instead of scaled.
2021-12-08Fix blurry thumbnails AGAINNicolas Werner
2021-12-08Fix display of images, that can't be thumbnailedNicolas Werner
2021-12-08Get rid of threadpool for imagesNicolas Werner
2021-09-18Change indentation to 4 spacesNicolas Werner
2021-08-16Fix dpi scaling of avatarsNicolas Werner
2021-08-14Round images in the image providerNicolas Werner
2021-08-06Basic sticker pack editorNicolas Werner
2021-07-21Fix some media not being cached properlyNicolas Werner
Most noticeable in the goose chooser.
2021-04-04Fix exif rotation in unencrypted roomsNicolas Werner
2021-03-17Fix shadowingNicolas Werner
2021-03-17Clean up notification code a bitNicolas Werner
2021-03-17Refactor image download code to be reusableNicolas Werner
2021-03-17Switch readImage to take a reference instead of a pointerLoren Burkholder
There was nowhere that an actual pointer was passed, and I wanted to do references for something else.
2021-03-05Update license headersNicolas Werner
2020-12-25Fix some compiler warningsNicolas Werner
2020-10-27Optimize buildNicolas Werner
2020-09-16Fix some images not showing upNicolas Werner
2020-06-07Smooth scaling for imagesNicolas Werner
Fixes some issues with inline images.
2020-04-26Respect exif rotation of imagesNicolas Werner
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.
2019-12-15Reduce Cache.h includes further via one forward declarationNicolas Werner
2019-12-15Reduce overhead of Cache.hNicolas Werner
2019-12-03Implement decryption of imagesNicolas Werner
It is a bit of a hack, but it works...
2019-11-23Improve avatar look and layoutingNicolas Werner
Thanks to red_sky for the feedback!
2019-11-23Size images/videos by timeline widthNicolas Werner
2019-11-23Implement avatars in qml timelineNicolas Werner