PDA

View Full Version : Problem saving JPG image



avis_phoenix
30th July 2009, 19:41
I had a Qimage, when I tried saving this image in JPG in console show this Message:

"QJpegHandler: Unable to write image in format 7"

Use this command to save the image:

image.save(filename,"JPG");

I use Qt 4.5.2 in Ubuntu 8.04 maybe I need some library

shentian
31st July 2009, 15:38
You can user QImageWriter::supportedImageFormats() to get a list of image formats that can be saved. Maybe this gives you a hint.