TiffIO 1.2.0
Jean-Dominique <dot> Gascuel <at> imag.fr

TiffIO is a plugin that add TIFF images read/write capabilities to all Qt3 and Qt4 applications using the QImage class.

Adding the plugin in the Qt's tree (or linking it witinh your own application) enables any Qt application to manipulate TIFF images transparently along with all other formats already managed by Qt.

TiffIO come with a self-test suite (test.pro), and have been compiled and used successfully on a wide variety of systems, compilers and Qt version combination. A demo application (demo.pro) enables to quickly test image loading & viewing on any platform.

Current support for reading .tif into a QImage :

Current support for writting a QImage :

What is not supported at the time :

All TIFF operations are based on libtiff 3.8.0, this plugin is just a wrapper that enable to use it transparently from the QImage class, and the QImageIO architecture defined by Qt.

Source download

Pre-compiled download

None at that time: because there is too many combination of versions of Qt, versions of compiler, and systems flavors...

Status

I am using TiffIO on Win32/Qt 3.2.3, ``every days'', and I am not aware of any bugs. The self-test suite (just compile and execute the provided test.pro project) enable a quick checking of the plugin consistency for a given platform. If you have a doubt, you can also compile the demo.pro micro-application to have a look at any dubious .tiff file.

Known Bugs

I you find some bugs, or need support never encountered before TIFF variant, send e-mails to Jean-Dominique.Gascuel at imag.fr.

History

Installation

Pre-requisite

have Qt installed, and the QTDIR environement variable correctly defined. In particular, having several installation of Qt (eg. Qt3 and Qt4) installed proved not to be working on some linux distributions.

On windows, to have zip compression support, you need to have installed Qt with internal zlib support, or you need to provide argument TIFF=pathToIncludeAndLib to any qmake call.

JPEG

To link with Qt's internal JPEG lib, you should have installed Qt with internal JPEG, not plugin JPEG (ie. configure with option -qt-imgfmt-jpeg on Qt3), and compile without hiding symbols from a DLL (ie. not from windows).

Under Unix/Linux, there is usually a jpeg lib installed in /usr, or /usr/local which TiffIO automatically detect.

Under MacOSX, there is no (by defaults) jpeg lib in the system, hence you need either to install with internal support for JPEG, either to disable jpeg support from TiffIO using the qmake's option CONFIG+=no-jpeg.

Under Windows, you can't link against a DLL without exporting the symbols. To use the $QTDIR/src/3rdparty/libjpeg, a solution is to compile that library separatly, then to link your plugin against it. See TiffIO.pri for details.

Testing

To run the self-test program, use the test.pro and run the generated executable. It should end saying All xxx the images checked ok. The corresponding cases are in the Example/ subdirectory.