Introduction
TIFF was created by Aldus in 1986 for desktop publishing and scanners, and passed to Adobe when it bought Aldus. The current baseline specification is TIFF 6.0 from 1992. It is a flexible container: one file can hold several pages, any of a long list of compression methods, high bit depths and many colour spaces, all described by numbered tags.
That flexibility makes TIFF common in print, scanning, archiving, medical and geographic imaging (GeoTIFF). Many camera raw formats, such as DNG and CR2, are built on the same structure.
Variations
| Format | Variation | About | Open |
|---|---|---|---|
.TIFF | Tagged Image File Format (classic) | Flexible tagged images for print, scanning and archives, often multi-page. | Open |
.TIFF | BigTIFF | TIFF with 64-bit offsets, for images and files larger than 4 GB. | Open |
Classic TIFF
The original layout, described by TIFF 6.0 and used by almost every
.tif file. Offsets are 32-bit, so a file can be at most 4 GB.
The file starts with II or MM for the byte order, then the
number 42: 49 49 2A 00 or 4D 4D 00 2A.
BigTIFF
A variant with 64-bit offsets and counts, for files over 4 GB such as large scans, microscope slides and satellite images. The tags and their meanings are the same; the header, directories and entries are wider.
The byte order mark is followed by the number 43 instead of 42:
49 49 2B 00 or 4D 4D 00 2B.
Not described
The pages for classic TIFF and BigTIFF follow TIFF 6.0, Technical Note 2 and LibTIFF’s
tiff.h. The gaps below apply to both unless said otherwise.
Known, not yet covered
- Reference: Adobe Photoshop TIFF Technical Note 3 (Predictor 3 and Deflate rules) and Technical Note 4 (ICCLab, Photometric 9) were not read. Predictor 3’s byte regrouping is described as LibTIFF implements it, and the ICCLab encoding from a comment in LibTIFF.
- Reference: Adobe’s PageMaker 6.0 notes, which would give the types of
XClipPathUnitsandYClipPathUnits, theClipPathpath syntax and the meaning of OPI beyond the 0 and 1 values, were not read. - Reference: the 2D mode codes of ITU-T T.4 section 4.2 were written from memory and not re-read.
- Reference: old-style JPEG (Compression 6) is described only as far as TIFF 6.0 section 22 goes; files differ between writers.
- Reference: codecs with a public specification elsewhere that are listed by number and name only: JPEG 2000, LERC, LZMA2, ZSTD, WebP and JPEG XL in TIFF.
- Reference: the paid technical notes: TIFF/EP (ISO 12234-2) and TIFF/IT (ISO 12639) are not read, so the TIFF/EP tag names come from ExifTool, and TIFF/IT’s own tags and its compressions (32895 to 32898) are named only; the Exif specification (CIPA DC-008) was not re-read for the Exif, GPS and interoperability tables.
- Reference: GeoTIFF’s EPSG code values are a database of thousands of numbers, not part of the TIFF or GeoTIFF specification; the viewer names a few common ones (4326, 4269, 4267, 4258, 4230, 4283, 9001 to 9003, 9102) and shows the rest as numbers.
- Viewer: lossless JPEG (SOF3, the way DNG stores raw data in Compression 7), arithmetic-coded JPEG, JPEG with 12-bit samples and JPEG with hierarchical coding are not decoded: the shared JPEG decoder turns them down, the tags, strips and tiles still show and the decoding report says why.
- Viewer: compressions with a public specification that are not decoded: Zstandard (50000), LZMA2 (34925), WebP (50001), JPEG 2000 (34712), JPEG XL (50002, 52546), LERC (34887), JBIG and JBIG2 (9, 10, 34661, 34715), JPEG XR (34934), PNG (34933) and SGI log (34676, 34677). The picture is not drawn and the Image section says not decoded with the compression.
- Viewer: colour filter array data (PhotometricInterpretation 32803) is drawn as grey samples without demosaicing, linear raw (34892) is drawn as RGB without white balance or the camera’s colour matrices, and the colour of a picture is never converted through its ICC profile. CMYK is converted with the plain formula, and ICCLab and ITULab use the default ranges.
- Viewer: a planar YCbCr image with subsampled chroma, a CMYK image whose InkSet is not CMYK (drawn as the first sample in grey), bit depths over 32 for integers (drawn from a 32-bit float approximation) and the ITULab
Decoderanges are not decoded as the specifications say; the picture is drawn as far as it goes and the report names the part. - Viewer: old-style JPEG (Compression 6) is read from its interchange stream or from its table tags, but no tool here makes such files, so only the code path is tested.
- Viewer: ExtraCameraProfiles (DNG) points to profiles that each start with their own header; they are listed as offsets, not followed. MakerNote, PrintIM, Photoshop image resources and IPTC contents are shown as sizes and bytes; XMP and ICC profiles open as files.
- Viewer: only the first 24 directories get a tab of their own; the rest are in the list and the structure tree. A picture over 16 million pixels is decoded from its top rows only.
Unknown
- Reference: private compression codecs with no public specification found: NeXT, ThunderScan, Pixar, SGI Log and Kodak DCS.
- Viewer: the same private codecs (NeXT 32766, Epson 32769, ThunderScan 32809, Kodak 262, 32867 and 32947, Pixar 32908 and 32909, Microsoft Document Imaging 34718 to 34720, Nikon 34713) are named, not decoded; the Image section says not decoded. A tag that no list here knows is shown as unknown tag with its type, count and values.
- Reference: TIFF 6.0 contradicts itself on two fields: Appendix A gives
ExtraSamplesas BYTE andReferenceBlackWhiteas LONG × 2·SPP, while the field sections say SHORT and RATIONAL × 6. The pages follow the field sections and say so.
Also used for
Links
Software
- Adobe Photoshop – image editor that opens and saves TIFF, including layers (Windows, macOS)
- GIMP – free image editor that opens and saves TIFF (Windows, macOS, Linux)
- Krita – free painting program that opens and saves TIFF (Windows, macOS, Linux)
- IrfanView – image viewer that shows multi-page TIFFs (Windows)
- XnView MP – image viewer and batch converter (Windows, macOS, Linux)
- ImageMagick – command-line tools that convert to and from TIFF (Windows, macOS, Linux)
- QGIS – free geographic information system that opens GeoTIFF (Windows, macOS, Linux)
Developers
Reference
- TIFF 6.0 specification – the Aldus and Adobe specification of 1992 (PDF)
- BigTIFF design – LibTIFF’s description of the BigTIFF layout
- EXIF and TIFF tags – ExifTool’s list of tag numbers, including later and private ones