Results 1 to 7 of 7

Thread: Loading TIF images in Ubuntu

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Knivsta, Sweden
    Posts
    153
    Thanks
    30
    Thanked 13 Times in 12 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11

    Default Loading TIF images in Ubuntu

    I have some problems loading TIF images using Qt.

    Googling gave me this:
    http://doc.qt.io/qt-5/qtimageformats-index.html

    The actual coding and decoding of the file format is done by a codec library. The codec can be Qt or third party code. In case of a third party codec, the build process will look for it among the system libraries. If not found, it may fall back on using a bundled copy (in src/3rdparty).

    On my own machine (Linux Mint 17.1, Qt 5.3.2 compiled from source), the return value of
    Qt Code:
    1. QImageReader::supportedImageFormats()
    To copy to clipboard, switch view to plain text mode 
    includes "tif" and "tiff". and consequently such images load fine.

    On a friend's machine (Ubuntu 14.04, Qt 5.2.1 that came with the installation), supportedImageFormats() does not include "tif". However,

    Qt Code:
    1. locate libtiff
    To copy to clipboard, switch view to plain text mode 
    on the command prompt shows
    /usr/lib/x86_64-linux-gnu/libtiff.so.5
    /usr/lib/x86_64-linux-gnu/libtiff.so.5.2.0

    As per the quote above, I expected Qt to find the codec "among the system libraries". What need to be done to ensure that?
    Last edited by drhex; 11th June 2015 at 07:12.

Similar Threads

  1. Loading 2 images in Same label ->
    By 2lights in forum Qt Programming
    Replies: 3
    Last Post: 18th July 2013, 08:43
  2. Loading images from url in qt 4
    By shalini in forum Newbie
    Replies: 4
    Last Post: 15th September 2011, 16:21
  3. Loading Images from Directory Faster
    By jalm in forum Newbie
    Replies: 1
    Last Post: 24th August 2011, 08:25
  4. Slow loading images
    By abbapatris in forum Qt Programming
    Replies: 10
    Last Post: 5th March 2008, 15:52
  5. Loading images in QTextBrowser
    By nisha0609 in forum Qt Programming
    Replies: 1
    Last Post: 3rd January 2007, 09:44

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.