Qt4 jpeg support broken

Bug #114416 reported by Patrick Cornelissen
4
Affects Status Importance Assigned to Milestone
qt4-x11 (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Regarding to the output of QImageReader::supportedImageFormats () it's not possible to read/write jpeg images in qt4 even if the apropriate plugin is located in /usr/lib/qt4/plugins/imageformats/

I noticed that because I tried to open a regular jpeg file with a qimage instance and got a null image all the time.

Maybe there is ia bug in the corresponding feisty package?

Revision history for this message
Konrad Ciekot (darknock) wrote :

Well I just have written aprogram in Qt4 and in Feisty it works all good, bu t problems with Null image reading jpeg files only occured in Windows XP so I don't think it is a problem with Ubuntu

Revision history for this message
Patrick Cornelissen (patrickcornelissen) wrote :

Well, I switched from Qt4 to openCV for the image handling now, so I can't check if an updated package exists, but I have a stock install with all qt4 packages installed and it didn't work on my laptop. It was a fresh install when feisty was released.
this is weird, because I did not mess with the qt configuration, so I'm wondering why it's broken in my system. But if it works for others, thats fine :)

Revision history for this message
Konrad Ciekot (darknock) wrote :

Hi, I think it works in Feisty for Me because I used APT to install the packages, On XP though I used downloaded version from Trolltech and it's standard configuration does not include jpeg support, and the download version for linux is configured in that way I think

Revision history for this message
Patrick Cornelissen (patrickcornelissen) wrote :

I used apt too, of course

Revision history for this message
hobel (hobel) wrote :

I can confirm this problem:

$ python
Python 2.5.1 (r251:54863, May 2 2007, 16:56:35)
[GCC 4.1.2 (Ubuntu 4.1.2-0ubuntu4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from PyQt4 import QtCore, QtGui
>>> [str(x) for x in QtGui.QImageReader.supportedImageFormats()]
['bmp', 'pbm', 'png', 'pgm', 'ppm', 'xbm', 'xpm']
>>>

No JPEG support visible, as well as documentation mentions that JPEG support
is available, and the file
/usr/lib/qt4/plugins/imageformats/libqjpeg.so
exists.

No further idea what might be the reason.

Revision history for this message
hobel (hobel) wrote :

For qt3, it works:

$ python
Python 2.5.1 (r251:54863, May 2 2007, 16:56:35)
[GCC 4.1.2 (Ubuntu 4.1.2-0ubuntu4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from qt import *
>>> QImageIO.inputFormats()
['BMP', 'GIF', 'JPEG', 'MNG', 'PBM', 'PGM', 'PNG', 'PPM', 'XBM', 'XPM']

Revision history for this message
Patrick Cornelissen (patrickcornelissen) wrote :

Thanks for the confirmation, I thought I'm getting crazy and seeing non existing bugs ;)

Revision history for this message
Fathi Boudra (fboudra) wrote :

works for me using latest Qt 4.4.x

Daniel T Chen (crimsun)
Changed in qt4-x11:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.