Results 1 to 2 of 2

Thread: Problem saving JPG image

  1. #1
    Join Date
    May 2006
    Posts
    57
    Thanks
    12
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Problem saving JPG image

    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:
    Qt Code:
    1. image.save(filename,"JPG");
    To copy to clipboard, switch view to plain text mode 

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

  2. #2
    Join Date
    May 2009
    Posts
    62
    Thanks
    2
    Thanked 16 Times in 15 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Problem saving JPG image

    You can user QImageWriter::supportedImageFormats() to get a list of image formats that can be saved. Maybe this gives you a hint.

Similar Threads

  1. can Qlabel display a series of image one by one ?
    By jirach_gag in forum Qt Tools
    Replies: 3
    Last Post: 11th August 2008, 15:36
  2. Problem getting an image from a web server
    By probine in forum Qt Programming
    Replies: 3
    Last Post: 12th January 2007, 23:05
  3. how i can add image in my toolbar
    By jyoti in forum Qt Tools
    Replies: 7
    Last Post: 19th December 2006, 14:39
  4. problem with image colections
    By zlatko in forum Qt Programming
    Replies: 1
    Last Post: 6th February 2006, 13:43
  5. Record update windowd entered data saving
    By MarkoSan in forum Qt Programming
    Replies: 56
    Last Post: 18th January 2006, 18:50

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.