Results 1 to 6 of 6

Thread: Saving image in jpeg format failed

  1. #1
    Join Date
    Feb 2009
    Posts
    29
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Saving image in jpeg format failed

    Hi,
    While trying to save an image in jpeg or gif format using "save()" of QImage, it is failing...What can be the reason??
    But if i saved in bmp, png and tiff formats, is shows success.
    Please help me.

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,004 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: Saving image in jpeg format failed

    Maybe the jpeg module is not correctly installed/supported in your Qt installation?

  3. #3
    Join Date
    Feb 2009
    Posts
    29
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Saving image in jpeg format failed

    Could you please help me how to verify and install the jpeg configuration??

  4. #4
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Saving image in jpeg format failed

    You will need to pass " -qt-gif -qtlibjpeg " as arguments to configure.exe while installing Qt.

    Also you could check the supported formats through QImageReader::supportedImageFormats ()

  5. #5
    Join Date
    Feb 2009
    Posts
    29
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Saving image in jpeg format failed

    i have reinstalled QT by configuring jpeg using -qt-libjpeg, but still i have the problem. i dont know whether need to do any more settings other than using -qt-libjpeg.

  6. #6
    Join Date
    Aug 2008
    Location
    Ukraine, Krivoy Rog
    Posts
    1,963
    Thanked 370 Times in 336 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Saving image in jpeg format failed

    what does this QImageReader::supportedImageFormats method return?
    Qt Assistant -- rocks!
    please, use tags [CODE] & [/CODE].

Similar Threads

  1. Saving pure plot data to image file
    By Debilski in forum Qwt
    Replies: 4
    Last Post: 7th April 2009, 18:02
  2. Saving QGraphicsScene with OpenGL to image
    By elbaschid in forum Qt Programming
    Replies: 1
    Last Post: 12th March 2009, 21:32
  3. Replies: 32
    Last Post: 30th March 2008, 21:00
  4. Some very weird compilation warnings
    By MarkoSan in forum Qt Programming
    Replies: 21
    Last Post: 23rd January 2008, 17:48
  5. Can't Write Image as Jpeg file
    By noufalk in forum Qt Programming
    Replies: 4
    Last Post: 25th July 2007, 15:53

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.