Sergey
Sergey

Reputation: 843

Qt and Jpeg plugin problem

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.

Upvotes: 4

Views: 1815

Answers (3)

Aakash
Aakash

Reputation: 1900

try putting the imageformats folder in qt installation with your executable as support dlls.

Upvotes: 0

Jan de Man
Jan de Man

Reputation: 21

The JpegHandler in Qt 4.6 does not support writing Format_RGB16 You have to convert to RGB888, or better, RGB32 In 4.7 it is fixed.

Upvotes: 2

Ton van den Heuvel
Ton van den Heuvel

Reputation: 10528

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.

Upvotes: 0

Related Questions