<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Topics tagged with pkmfile]]></title><description><![CDATA[A list of topics that have been tagged with pkmfile]]></description><link>https://forum.qt.io/tags/pkmfile</link><generator>RSS for Node</generator><lastBuildDate>Fri, 10 Jul 2026 02:34:20 GMT</lastBuildDate><atom:link href="https://forum.qt.io/tags/pkmfile.rss" rel="self" type="application/rss+xml"/><pubDate>Invalid Date</pubDate><ttl>60</ttl><item><title><![CDATA[Image, loading *.pkm file(ETC1) issue]]></title><description><![CDATA[<p dir="auto">Hi,<br />
I'was trying to test the new features from Qt 5.10 and 5.11, and I have a problem with the loading of Image from .pkm file.<br />
I used for my test a png, I conveted it into pkm(etc1) with Mali Texture Compression Tool (v4.3.0) and I test with to "etc1tool".<br />
I can encode and decode from each other without any problem. (png-&gt;pkm with one and pkm-&gt;png with the other one for example).<br />
So it's seems their is no problem with the generated pkm files.<br />
But when I trying to load one in the QML with Image, It display a black image with the expected size.<br />
This is my code to test it :</p>
<pre><code>import QtQuick 2.11
import QtQuick.Window 2.11

Window {
    id: window
    visible: true
    width: 1000
    height: 1000
    title: qsTr("Hello World")
    color : "black"

    Rectangle{
        color : "darkgray"
        x:0
        y:0
        width:grid.width +20
        height: grid.height + 20
        Grid {
            x:10
            y:10
            id:grid
            columns: 3

            horizontalItemAlignment: Grid.AlignHCenter
            verticalItemAlignment: Grid.AlignVCenter

            spacing: 10

            Text{text : " "; font.pixelSize: 20}
            Text{text : "Normal"; font.pixelSize: 20}
            Text{text : "Pre-alpha"; font.pixelSize: 20}

            Text{text : ".png"; font.pixelSize: 20}
            Image { source: "file:///" + applicationDirPath + "/../../imagine_style_test/assets/fuel_gauge/qt_icon.png"; sourceSize.width: 200; sourceSize.height: 200 }
            Image { source: "file:///" + applicationDirPath + "/../../imagine_style_test/assets/fuel_gauge/qt_icon_pre.png"; sourceSize.width: 200; sourceSize.height: 200 }

            Text{text : "ETC1 (.pkm)"; font.pixelSize: 20}
            Image { source: "file:///" + applicationDirPath + "/../../imagine_style_test/assets/fuel_gauge/qt_icon.pkm"}
            Image { source: "file:///" + applicationDirPath + "/../../imagine_style_test/assets/fuel_gauge/qt_icon_pre.pkm"}

            Text{text : "auto pick"; font.pixelSize: 20}
            Image { source: "file:///" + applicationDirPath + "/../../imagine_style_test/assets/fuel_gauge/qt_icon"}
            Image { source: "file:///" + applicationDirPath + "/../../imagine_style_test/assets/fuel_gauge/qt_icon_pre"}
        }
    }
}
</code></pre>
<p dir="auto">And finally what is displayed :<br />
<img src="https://ddgobkiprc33d.cloudfront.net/47879da9-2917-4147-8888-0fcf43c794fa.png" alt="0_1531148945007_problem.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">I test the compilation under linux and windows(mingw) against Qt 5.10 and 5.11.1 : same results.</p>
<p dir="auto">Can someone help me  ?<br />
Thanks</p>
]]></description><link>https://forum.qt.io/topic/92435/image-loading-pkm-file-etc1-issue</link><guid isPermaLink="true">https://forum.qt.io/topic/92435/image-loading-pkm-file-etc1-issue</guid><dc:creator><![CDATA[divdiv]]></dc:creator><pubDate>Invalid Date</pubDate></item></channel></rss>