Ask / Submit
3

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

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

BirdZhang gravatar image

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

The origin image url is https://sailfishos.org/wp-content/uploads/2015/09/HOME.jpg

image description

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

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
        }
edit retag flag offensive close delete

Comments

1

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

1 Answer

Sort by » oldest newest most voted
0

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

coderus gravatar image

Related? https://bugreports.qt.io/browse/QTBUG-38003

edit flag offensive delete publish link more

Comments

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 +0200 )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 +0200 )edit
Login/Signup to Answer

Question tools

Follow
2 followers

Stats

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

Seen: 197 times

Last updated: Nov 27 '17