Set source size in link preview images

This prevents them from looking super jagged when we scale down a
high-res image into a small (usually ~70px in height) space.
This commit is contained in:
Joshua Goins
2025-08-19 17:18:00 -04:00
parent 83415d202a
commit 4498d4457b

View File

@@ -77,6 +77,8 @@ QQC2.Control {
visible: root.linkPreviewer.imageSource.toString().length > 0
source: root.linkPreviewer.imageSource
fillMode: Image.PreserveAspectFit
sourceSize.width: width * Screen.devicePixelRatio
sourceSize.height: height * Screen.devicePixelRatio
}
ColumnLayout {
id: column