2023.05.11 14:30 "[Tiff] TIFF test file generator (based on GraphicsMagick)", by Bob Friesenhahn

2023.05.11 14:30 "[Tiff] TIFF test file generator (based on GraphicsMagick)", by Bob Friesenhahn

Some people are interested in TIFF test images in order to test their own software, or to see what is possible with the TIFF format (and libtiff, which makes this all reasonably possible).

I have added a 'genimages' shell script to the GraphicsMagick source tree in the utilities/tests/gen-tiff-images subdirectory which uses GraphicsMagick (a common Q16, or preferably a Q32 build) to produce 736 permutations of uncompressed TIFF/BigTIFF files.

On my laptop, this script produces 3.4G of files in just a few minutes.

The README.txt file in that directory (https://hg.osdn.net/view/graphicsmagick/GM/file/tip/utilities/tests/gen-tiff-images/README.txt) provides instructions as well as a summary of current output.

Few of the generated files can be described as "baseline" TIFF and many are quite esoteric, with unusual bit depths, and floating point formats (unfortunately, not HDR). Indeed, most software will not be able to read most of the files.

Since this is just a shell script, someone can modify it to do whatever they like such as to also produce compressed files or play with strip/tile options, or change image dimensions. The TIFF format is remarkably flexible so it would be easy to produce 10x (or 100x) more output sub-formats in order to exercise corner-cases.

Bob

Bob Friesenhahn
bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer, http://www.GraphicsMagick.org/
Public Key, http://www.simplesystems.org/users/bfriesen/public-key.txt