PDA

View Full Version : Saving image in jpeg format failed



febil
22nd April 2009, 13:55
Hi,
While trying to save an image in jpeg or gif format using "save()" of QImage, it is failing...What can be the reason??
But if i saved in bmp, png and tiff formats, is shows success.
Please help me.

Lykurg
22nd April 2009, 14:05
Maybe the jpeg module is not correctly installed/supported in your Qt installation?

febil
23rd April 2009, 04:44
Could you please help me how to verify and install the jpeg configuration??

aamer4yu
23rd April 2009, 05:24
You will need to pass " -qt-gif -qtlibjpeg " as arguments to configure.exe while installing Qt.

Also you could check the supported formats through QImageReader::supportedImageFormats ()

febil
23rd April 2009, 11:29
i have reinstalled QT by configuring jpeg using -qt-libjpeg, but still i have the problem. i dont know whether need to do any more settings other than using -qt-libjpeg. :(

spirit
23rd April 2009, 11:33
what does this QImageReader::supportedImageFormats method return?