Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
4.7.0
-
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
- is required for
-
QTBUG-8984 [QML] Image SVG width: handling problems when binding
- Closed