tags:

views:

41

answers:

1

Hi!

When I try to save pixmap in jpg format then I get an error in console QJpegHandler: unable to write image of format 7 and the result image is corrupt.

How to fix this problem?

Qt 4.6.2 on windows mobile. On symbian it works fine without any problems.

Thanks in advance.

A: 

I suspect that the JPEG image plugin is not linked with your executable. To see which image formats are available, try:

QImageWriter::supportedImageFormats()

See the Qt documentation for more information. In case JPEG is not supported, build the JPEG plugin that comes with Qt and link it with your application.

Ton van den Heuvel
it is linked, supportedImageFormats() - gif, jpeg, jpg, png. I found the same problem here http://www.archivum.info/[email protected]/2009-10/00750/Re-(Qt-interest)-QImageWriter-says-JPEG-supported-but-won't-write-JPEG-Files.html but when I convert my image to rgb32 this doesn't affect on the situation.
Sergey