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

JPEG loader cannot read size header from stream

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 4.7.0
    • 4.7.0
    • Image formats
    • None
    • 25214cddf4b52506be07e9897d9b7852d793afc5

    Description

      QImageReader::size() does not work for streamed JPEG (eg. QNetworkReply).

      The cause is that the plugin doesn't create and maintain a jpeg_decompress_struct, but needlessly creates and destroys it when it is asked for the size. Like all other formats, libjpeg is designed to allow just the header (of streamed data) to be read. See qpnghandler for example of doing it correctly.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              albisser Zeno Albisser
              wallison Warwick Allison (closed Nokia identity) (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes