Modifying a standard Qt image plugin
I created a Qt image format plugin to write CCITT-compressed TIFF files by stripping out everything that wasn't needed from the standard TIFF plugin in Qt.
Here's a recipe for those of you interested in doing the same thing:
- Locate the src/plugins/imageformats/tiff directory in the Qt source package.
- Copy it, creating a new directory called tiff_ccitt for the modifications. Make the following modifications to files in that directory.
Apply the set of patches to the files in that directory, typically by entering the directory at the command line and typing
{{{patch < tiff_ccitt.patches }}}
Now, you should be able to build the plugin by typing the following commands: