Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-105941

Failure to decode ETC2 texture (*.pkm file) if downloaded over HTTP

    XMLWordPrintable

Details

    • 7ea0aa1a57 (qt/qtdeclarative/dev) 7ea0aa1a57 (qt/tqtc-qtdeclarative/dev)

    Description

      See attached project.

      import QtQuick 2.15
      import QtQuick.Window 2.15
      
      Window {
          width: 640
          height: 480
          visible: true
      
          Column {
              Image {
                  width: 100
                  height: 100
                  source: "qrc:/youtube.pkm"
              }
              Image {
                  width: 100
                  height: 100
                  source: "http://127.0.0.1:4000/images/youtube.pkm"
              }
          }
      }
      

      The first Image displays the *.pkm file just fine.

      However, when the same file is loaded from a HTTP server, it produces an error:

      qrc:/main.qml:15:9: QML Image: Error decoding: http://127.0.0.1:4000/images/youtube.pkm: Unsupported image format
      

       

      Notes

      The file was downloaded from the server successfully. If a bad URL is used instead, the error message would be something like
      qrc:/main.qml:15:9: QML Image: Error transferring http://127.0.0.1:4000/images/yootube.pkm - server replied: Not Found

      Attachments

        For Gerrit Dashboard: QTBUG-105941
        # Subject Branch Project Status CR V

        Activity

          People

            vgt Eirik Aavitsland
            skoh-qt Sze Howe Koh
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes