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 ofincludes "tif" and "tiff". and consequently such images load fine.Qt Code:
To copy to clipboard, switch view to plain text mode
On a friend's machine (Ubuntu 14.04, Qt 5.2.1 that came with the installation), supportedImageFormats() does not include "tif". However,
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?
Bookmarks