Problem with QImage and JPEG
-
wrote on 19 Oct 2010, 16:40 last edited by
I have a problem when I try rescale a image (jpeg image). If I try it in other pc, without qt installed, the image isn't saved.
I using Windows XP, Qt 4.6.2 and Mingw 4.4.
-
wrote on 19 Oct 2010, 16:48 last edited by
Can you post some test code. Didn't really understand what you are trying to do.
You resized a JPEG image and tried to save it on another PC and the save failed?
-
wrote on 19 Oct 2010, 18:09 last edited by
Jpeg is a third part library, you have to port in another pc the plugin qjpeg4.dll.
remember the folder imageformats/qjpeg4.dll -
wrote on 20 Oct 2010, 06:51 last edited by
It is best to check if image formats and other things supplied by a plugin (such as SQL drivers, for example) are available before trying to use them from your program. If they are not, the program should indicate that error.
In your case, query QImageWriter::supportedImageFormats() to see if JPEG is supported by the running instance of your application before using it.
1/4