Skip to content
TIFF

File:TIFF_wordmark_logo.svg · Wikimedia Commons · See Wikimedia Commons

EntityQ215106· pop 40· linked from 679 articles

Also known as TIF, Tag Image File Format, Tagged Image File Format

Tag Image File Format or Tagged Image File Format, commonly known by the abbreviations TIFF or TIF, is an image file format for storing raster graphics images, popular among graphic artists, the publishing industry, and photographers. TIFF is widely supported by scanning, faxing, word processing, optical character recognition, image manipulation, desktop publishing, and page-layout applications.

Key facts

File format.name
TIFF/IT
File format.icon
class=skin-invert-image|frameless
File format.iconcaption
Wordmark of the TIFF Revision 6.0
File format._noextcode
on
File format.extensions
,
File format._nomimecode
on
File format.type code
TIFF
File format.uniform type
public.tiff
File format.magic
49 49 2A 00 or 4D 4D 00 2A
File format.owner
ANSI, ISO
File format.latest release version
TIFF/IT
File format.latest release date
TIFF Supplement 2 /
File format.genre
Image file format
File format.extended from
TIFF 6.0
File format.extended to
Exif, DCF, TIFF/EP, TIFF/IT, TIFF-FX, GeoTIFF
File format.extension
.fp, .ct, .lw, .hc, .mp, .bp, .bl, .sd
File format.mime
not defined
File format.standard
ISO 12639

via Wikipedia infobox

Described at

TIFF image generation

paulbourke.net

The following demonstrates how to create 24 bit colour RGB TIFF (Tagged Image FIle Format) files. That is, how to create images from your own software that can be then opened and manipulated with image handling software, for example: GIMP, PhotoShop, etc. Given this aim, this document illustrates the "minimal" requirements necessary to create a TIFF file, it does not provide enough information for writing a TIFF file reader. For more information on the full TIFF specification the following postscript and pdf files describe the TIFF version 6. The first 8 bytes forms the header . The first two bytes of which is either "II" for little endian byte ordering or "MM" for big endian byte ordering. In what follows we'll be assuming big endian ordering. Note: any true TIFF reading software is supposed to be handle both types. The next two bytes of the header should be 0 and 42dec (2ahex). The remaining 4 bytes of the header is the offset from the start of the file to the first "Image File Directory" (IFD), this normally follows the image data it applies to. In the example below there is only one image and one IFD. / Each IFD entry consists of 12 bytes. The first two bytes identifies the tag type (as in Tagged Image File Format). The next two bytes are the field type (byte, ASCII, short int, long int, ...). The next four bytes indicate the number of values. The last four bytes is either the value itself or an offset to the values. The following is an example using the TIFF file shown on the right, namely a black image with a single white pixel at the top left and the bottom right position. The image is 100 pixels wide by 200 pixels high. A hex dump is given below along with matching pointers and locations marked in matching colours, these colours further match the appropriate parts of the source code gievn later. The tags are underlined. TIFF RGB images should always have a contiguous (RGBRGBRGB ...) not planar (RRR..RGGG..GBBB..B) format. While the header allows you to specify planar, it is not well supported. For 16-bit data, be aware that most TIFF viewers ignore the maximum and minimum values and assume your data is scaled from 0 to 65535 (You can test this with my example). For 16-bit data, it is important that the endian is set correctly. For data with only one component (e.g. grayscale or black and white) you encode min, max, bits per sample directly in the tag, for RGB data the tag provides a pointer to the address for those values. The following example are an adaption of the above with the following additional features. Example that copies an arcane lossless JPEG format that is popular with medical imaging to TIFF (my own library).

Excerpt from a page describing this subject · 10,454 chars · not written by Vinony

Wikidata facts

Show 9 more facts
Commons category
Tagged Image File Format
Stack Exchange tag
stackoverflow.com/tags/tiff
media type
image/tiff
file extension
tiff
publication date
1986-00-00
file format identification pattern
49492A00
short name
TIFF
Sources (5)

via Wikidata · CC0

~35 min read

Article

34 sections
Contents
  • History
  • Overview
  • MIME type
  • Digital preservation
  • Details
  • {{anchor|Baseline TIFF}}Part 1: Baseline TIFF
  • Multiple subfiles
  • Strips
  • Compression
  • Image types
  • Byte order
  • Other TIFF fields
  • {{anchor|TIFF Extensions}}Part 2: TIFF Extensions
  • Compression
  • Image types
  • Image trees
  • Tiles
  • Other extensions
  • Private tags
  • TIFF Compression Tag
  • Related formats
  • BigTIFF
  • Exif
  • SVS
  • TIFF/IT
  • TIFF/IT files
  • TIFF/IT compression
  • TIFF/IT P1
  • TIFF/IT P2
  • Private tags
  • Standards
  • See also
  • References
  • External links

Tag Image File Format or Tagged Image File Format, commonly known by the abbreviations TIFF or TIF, is an image file format for storing raster graphics images, popular among graphic artists, the publishing industry, and photographers. TIFF is widely supported by scanning, faxing, word processing, optical character recognition, image manipulation, desktop publishing, and page-layout applications.

The format was created by Stephen Carlsen, an engineer at Aldus Corporation, for use in desktop publishing. It published the latest version 6.0 in 1992, subsequently updated with an Adobe Systems copyright after the latter acquired Aldus in 1994. Several Aldus or Adobe technical notes have been published with minor extensions to the format, and several specifications have been based on TIFF 6.0, including TIFF/EP (ISO 12234-2), TIFF/IT (ISO 12639), TIFF-F (RFC 2306) and TIFF-FX (RFC 3949).

Gallery (3)

Connections

Categories