Hello,

I want save my image from file dialogBox I write the following code but I
have following error:


my erroe :

        "QImageIO::write: No such image format handler: JPG"

my code :

      fileName = qt.QFileDialog.getSaveFileName(

                            "/home",

                             "Images (*.png *.xpm *.jpg)",

                              self,

                             "save file dialog"

                              "Choose a filename to save under" )

       if not fileName.isEmpty():

               self.originalPixmap.save(fileName,"JPG")



why I have this error?I have this error with another image format!

please help me about this error.

thanks.
_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to