[Bug]Qml Label with images not correctly shown on xperia phones
The origin image url is https://sailfishos.org/wp-content/uploads/2015/09/HOME.jpg
The image shows on Sailfish X with Qml Label tag:
My test code is:(or you can use this demo https://github.com/0312birdzhang/label-show-image-demo)
Label {
anchors{
margins: Theme.paddingMedium
horizontalCenter: parent.horizontalCenter
}
text: "Some Text<br/><img src=\"https://sailfishos.org/wp-content/uploads/2015/09/HOME.jpg\" />"
.replace(/<img src=\"([^<>"]*)\".*?>/g,"<img src=\"$1\" width="+( Screen.width - Theme.paddingMedium*2 )+"/>");
color: Theme.highlightColor
textFormat: Text.RichText
font.pixelSize: Theme.fontSizeExtraSmall
wrapMode: Text.WordWrap
linkColor:Theme.primaryColor
}
Indeed. This bug affects some apps while browsing large online images using Sailfish X. Like viewing the full articles in the Tidings app (an RSS reading app in the Jolla Store). And it seems only appears on Sailfish X, not on other Sailfish devices.
Universebenzene_Jolla ( 2017-11-27 08:10:23 +0200 )editIf this is about the color of the image (I didn't understand that from the original post) then yes, I get that, too. I've never yet seen it on my home screen, but in Tidings the colors of many images are all wrong on the Xperia (and only on the Xperia).
ossi1967 ( 2017-11-27 09:02:31 +0200 )edit@ossi1967 You got it. This was exactly what we meant. Another example: the native tjc client(Jolla Together). If you browse this question with the Jolla Together app, it looks like this: https://i.loli.net/2017/11/27/5a1bc029c6430.png The colours of the images behave oppositely from what you see in the normal web page.
Universebenzene_Jolla ( 2017-11-27 09:39:05 +0200 )editI seem to be able to reproduce this with XA2 in some cases too.
Smar ( 2019-03-23 18:57:35 +0200 )editDid you by any chance found a solution for this bug?
cnlpete ( 2020-04-17 16:20:15 +0200 )edit