TIFF test files
===============

33 files, 120 by 80 pixels, for checking that a TIFF or PNG decoder reads
images exactly. Published by TIFF to PNG (https://tiff.tools/blog/tiff-test-images/).

fixtures/
  pattern-*.tif   14 valid TIFFs: bilevel in six compressions, RGB,
                  JPEG-in-TIFF, CMYK, grey, palette, RGBA, 16-bit grey,
                  and a three-page file.
  pattern-*.png   12 valid PNGs: RGB, grey, palette, RGBA, grey+alpha,
                  16-bit grey, 16-bit mixed bytes, 4-bit palette with tRNS,
                  4-bit grey with tRNS, truecolour with tRNS, Adam7.
  truth-*.bin     Expected decoded pixels, one byte per sample, rows top to
                  bottom. truth-rgb.bin is 28,800 bytes and serves
                  pattern-rgb.tif and pattern-rgb.png. truth-rgba.bin is
                  38,400 bytes and serves pattern-rgba.png (the TIFF carries
                  opaque alpha). truth-bilevel.bin is 9,600 bytes, one byte
                  per pixel: 1 for black, 0 for white.
  garbage.tif     A valid TIFF header followed by noise.
  notatiff.tif    Raw RGB bytes with a .tif name.
  notapng.png     TIFF bytes with a .png name.
  cut.png         A valid PNG cut short.

Regenerate
----------
python3 make-fixtures.py

Requires Pillow built with libtiff. The script writes to fixtures/ next to
itself and is deterministic, so a regenerated suite diffs clean.
