Fix images being cropped instead of scaled

pull/985/head
Nicolas Werner 3 years ago
parent fcfcf5573b
commit 7a11b69f99
No known key found for this signature in database
GPG Key ID: C8D75E610773F2D9
  1. 2
      resources/qml/delegates/ImageMessage.qml
  2. 2
      resources/qml/delegates/PlayableMediaMessage.qml
  3. 2
      resources/qml/dialogs/ImagePackEditorDialog.qml
  4. 2
      resources/qml/dialogs/ImagePackSettingsDialog.qml
  5. 2
      resources/qml/emoji/StickerPicker.qml

@ -45,7 +45,7 @@ Item {
visible: !mxcimage.loaded
anchors.fill: parent
source: url.replace("mxc://", "image://MxcImage/")
source: url.replace("mxc://", "image://MxcImage/") + "?scale"
asynchronous: true
fillMode: Image.PreserveAspectFit
smooth: true

@ -57,7 +57,7 @@ Item {
Image {
anchors.fill: parent
source: thumbnailUrl.replace("mxc://", "image://MxcImage/")
source: thumbnailUrl.replace("mxc://", "image://MxcImage/") + "?scale"
asynchronous: true
fillMode: Image.PreserveAspectFit

@ -243,7 +243,7 @@ ApplicationWindow {
Avatar {
Layout.columnSpan: 2
url: imagePack.data(imagePack.index(currentImageIndex, 0), SingleImagePackModel.Url).replace("mxc://", "image://MxcImage/")
url: imagePack.data(imagePack.index(currentImageIndex, 0), SingleImagePackModel.Url).replace("mxc://", "image://MxcImage/") + "?scale"
displayName: imagePack.data(imagePack.index(currentImageIndex, 0), SingleImagePackModel.ShortCode)
roomid: displayName
height: 130

@ -233,7 +233,7 @@ ApplicationWindow {
contentItem: Image {
height: stickerDim
width: stickerDim
source: model.url.replace("mxc://", "image://MxcImage/")
source: model.url.replace("mxc://", "image://MxcImage/") + "?scale"
fillMode: Image.PreserveAspectFit
}

@ -157,7 +157,7 @@ Menu {
contentItem: Image {
height: stickerDim
width: stickerDim
source: model.url.replace("mxc://", "image://MxcImage/")
source: model.url.replace("mxc://", "image://MxcImage/") + "?scale"
fillMode: Image.PreserveAspectFit
}

Loading…
Cancel
Save