From 4498d4457b2f628c7faac773d22ab6db3cacdaba Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Tue, 19 Aug 2025 17:18:00 -0400 Subject: [PATCH] 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. --- src/messagecontent/LinkPreviewComponent.qml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/messagecontent/LinkPreviewComponent.qml b/src/messagecontent/LinkPreviewComponent.qml index 013e0ebf3..954a1d4e7 100644 --- a/src/messagecontent/LinkPreviewComponent.qml +++ b/src/messagecontent/LinkPreviewComponent.qml @@ -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