# Qt Image IO Extension Library

This library is an extension to the Qt GUI Toolkit. It provides image input/output facilities for additional formats which may require additional libraries or DLLs, or simply large amounts of code to implement. The purpose of this extension is to allow the Qt GUI Toolkit to remain unbloated by such additional library code, while allowing Qt applications with specific image I/O requirements to have readily available support.

The API of the library is simple. An application requiring additional image formats should either call the function:

- qInitImageIO ()

or call a selection of the format-specific functions:

- qInitJpegIO ()
- qInitPngIO ()

## Function Documentation

### qInitImageIO()

      #include <qimgio.h>

Initialize all image I/O extensions. Note that future versions of this extension may support more formats than the version your application was originally linked with. If you link dynamically with `libqimgio`, then those new formats will be available, and the user will require any libraries for supporting those formats (which presumably they will have if they have installed a newer version of `libqimgio`). If this is not what you want, consider linking this code statically.

Currently, this function enables JPEG and PNG support.

### qInitJpegIO()

      #include <qjpegio.h>

Initialize JPEG image I/O extensions.

- Requires `libjpeg.so.6`
  - Tested with `libjpeg.so.6.0.1`.
  - See ftp.uu.net for the official sources.
  - Zipped package available on Simtel.
  - See FTP Search for other sources.
  - See the JPEG FAQ for more information.

### qInitPngIO()

      #include <qpngio.h>

Initialize PNG image I/O extensions.

- Requires `libpng.so.0` and `libz.so.1`
  - Tested with `libpng.so.0.96` and `libz.so.1.0.4`.
  - Free PNG code available from The PNG Development Group
  - Free ZLib code available in a Gzipped Tar file, or a Zip file.
  - See The PNG Home Page and The ZLib Home Page for more information.