Ask / Submit

[Bug]Qml Label with images not correctly shown on xperia phones

asked 2017-11-27 08:03:05 +0300

BirdZhang gravatar image

updated 2017-11-27 08:04:37 +0300

The origin image url is

image description

The image shows on Sailfish X with Qml Label tag: image description

My test code is:(or you can use this demo

        Label {
                margins: Theme.paddingMedium
                horizontalCenter: parent.horizontalCenter

            text: "Some Text<br/><img src=\"\" />"
                    .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
edit retag flag offensive close delete



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 +0300 )edit

If 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 +0300 )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: The colours of the images behave oppositely from what you see in the normal web page.

Universebenzene_Jolla ( 2017-11-27 09:39:05 +0300 )edit

I seem to be able to reproduce this with XA2 in some cases too.

Smar ( 2019-03-23 18:57:35 +0300 )edit

1 Answer

Sort by » oldest newest most voted

answered 2017-11-27 08:26:56 +0300

coderus gravatar image


edit flag offensive delete publish link more


Not this bug.The bug is this image color not correct rendering,sorry for my bad elglish and description ;)

BirdZhang ( 2017-11-27 08:40:43 +0300 )edit

While our problem is not really about the alignment, but actually about the colour. The alignment of the example image seems not so good might just because its resolution is even larger than the Xperia X. But the colour of the image shown on Sailfish X is really different with the original one, which looks strange.

Universebenzene_Jolla ( 2017-11-27 08:41:25 +0300 )edit
Login/Signup to Answer

Question tools



Asked: 2017-11-27 08:03:05 +0300

Seen: 243 times

Last updated: Nov 27 '17