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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user