This is a static archive of the Python wiki, which was retired in February 2026 due to lack of usage and the resources necessary to serve it — predominately to bots, crawlers, and LLM companies.
Pages are preserved as they were at the time of archival. For current information, please visit python.org.
If a change to this archive is absolutely needed, requests can be made via the infrastructure@python.org mailing list.

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:

  1. Locate the src/plugins/imageformats/tiff directory in the Qt source package.
  2. Copy it, creating a new directory called tiff_ccitt for the modifications. Make the following modifications to files in that directory.
  3. 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:


2026-02-14 16:12