Results 1 to 3 of 3

Thread: QImageWriter supportedImageFormats only sometimes includes JPEG. Why?

  1. #1
    Join Date
    Jun 2008
    Location
    Boulder, Colorado, USA
    Posts
    70
    Thanks
    16
    Thanked 1 Time in 1 Post
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Question QImageWriter supportedImageFormats only sometimes includes JPEG. Why?

    On some of our installations built with Qt 4.3.3, users are seeing the results of QImageWriter::supportedImageFormats to be only these items -- and this is a problem for us:

    bmp Image (*.bmp)
    png Image (*.png)
    ppm Image (*.ppm)
    xbm Image (*.xbm)
    xpm Image (*.xpm)

    On other installations, the following items are also shown:

    jpeg Image (*.jpeg)
    jpg Image (*.jpg)

    Why might this be? And how can we make the JPEG options show up on all installations?

    Thanks in advance,
    Phil Weinstein, Boulder CO USA
    http://cadswes.colorado.edu/

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

    Default Re: QImageWriter supportedImageFormats only sometimes includes JPEG. Why?


  3. #3
    Join Date
    Jun 2008
    Location
    Boulder, Colorado, USA
    Posts
    70
    Thanks
    16
    Thanked 1 Time in 1 Post
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Re: QImageWriter supportedImageFormats only sometimes includes JPEG. Why?

    Yes, absolutely right. Thank you. Here is the relevant part of that FAQ:

    You probably didn't deploy image plugins with your application. You need to copy the contents of plugins/imageformats directory of your Qt installation to the imageformats subdirectory of the directory where you deployed the application binary.

    For instance if you deployed the application to C:\Program Files\MyApp, you need to copy the plugins to C:\Program Files\MyApp\imageformats.

    Imageformat plugins are libraries called "qjpeg", "qsvg", "qtiff", etc.

Tags for this Thread

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.