Results 1 to 9 of 9

Thread: Saveing in .gif format

  1. #1
    Join Date
    Oct 2007
    Location
    Bangalore
    Posts
    27
    Qt products
    Qt4
    Platforms
    Windows

    Default Saveing in .gif format

    Hi All,

    In my application i am takeing the snapshot of the screen and i want to save that snapshot in .gif format .. Is it possible to save in .gif format ??? as i read Qt4 support only reading of .gif images not saveing...

    if any one know's the solution please reply ....

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Saveing in .gif format

    Quote Originally Posted by chethana View Post
    as i read Qt4 support only reading of .gif images not saveing...
    That's right. By default, Qt can read these formats and but only write these formats.
    J-P Nurmi

  3. #3
    Join Date
    Oct 2007
    Location
    Bangalore
    Posts
    27
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Saveing in .gif format

    Ok ... But can't i save in .gif format ??? shall i need to puchase licensed version software which support saveing in .gif format??

    presently i am working in Qt4.2.2.

  4. #4
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Saveing in .gif format

    I'm afraid you'll have to look for a 3rd party library.
    J-P Nurmi

  5. #5
    Join Date
    May 2006
    Location
    Bangalore,India
    Posts
    235
    Thanks
    7
    Thanked 25 Times in 24 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default Re: Saveing in .gif format

    By default, Qt4.3.1 can write the following formats only:
    Format Description
    BMP Windows Bitmap
    JPG Joint Photographic Experts Group
    JPEG Joint Photographic Experts Group
    PNG Portable Network Graphics
    PPM Portable Pixmap
    TIFF Tagged Image File Format
    XBM X11 Bitmap
    XPM X11 Pixmap

  6. #6
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Saveing in .gif format

    Can't you save in PNG instead of GIF? It's better than GIF in all aspects... and it's Free.

  7. #7
    Join Date
    Oct 2007
    Location
    Bangalore
    Posts
    27
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Saveing in .gif format

    But in my project requirement they given that it should take the snap shot of the screen and save in .gif format only....

    But as i read only .gif reading support is their in Qt4.2.2 not saving... In some country patent license issue's are not permitted ... and also future version of Qt won't be having .gif support ..

    I will speak regarding this with my PM

    Any way Thanks for giving information ...

  8. #8
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Saveing in .gif format

    Please try to support PNG. GIF sucks compared to it. PNG supports full 32 bit (24bit chroma + 8bit alpha) colour space (compared to 8 bit colour space in gif), is device independent (the image should look the same regardless of the device characteristics) and has a very decent compression that is not patented.

  9. #9
    Join Date
    Mar 2006
    Location
    Mountain View, California
    Posts
    489
    Thanks
    3
    Thanked 74 Times in 54 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Saveing in .gif format

    If you cannot get around your outdated requirements, then get a tiny gif to png converter, and run it under QProcess.

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.