Clever Geek Handbook
πŸ“œ ⬆️ ⬇️

Tiff

TIFF ( Tagged Image File Format ) is a format for storing raster graphic images. TIFF has become a popular format for storing images with a large color depth . It is used in scanning, faxing, text recognition, printing, widely supported by graphic applications. TIFF was chosen as the main graphic format of the NeXTSTEP operating system, and from it support for this format was transferred to Mac OS X. The format was developed by Aldus Corporation in collaboration with Microsoft for use with PostScript . The company, the owner of the specifications - Aldus Corporation - subsequently merged with Adobe Systems , which currently owns the copyright for these specifications [3] .

Tagged Image File Format
Expansion
MIME type
DeveloperMicrosoft and Aldus , now Adobe Systems
Published1986
Format typeraster graphics
Developed inEXIF , DCF , TIFF / EP , TIFF / IT , TIFF-FX , GeoTIFF
Website

Initially, the format supported lossless compression ; later, the format was supplemented to support lossy compression in JPEG format [3] .

TIFF format files, as a rule, have the extension .tiff or .tif .

Content

  • 1 Signature and file header
  • 2 Supported Storage Formats
  • 3 Compression
  • 4 Tags
    • 4.1 Main marks
    • 4.2 Extended tags
    • 4.3 Special tags
  • 5 See also
  • 6 notes

Signature and file header

The file header contains a signature and a link (offset) to the first substantial block of data in the file.

The file signature ( magic number ) of TIFF consists of two parts:

  • Bytes 0-1 - to determine the order of bytes in the file (presented in hexadecimal notation and in text form based on ASCII encoding):
    • 49 49 (β€œβ€œ II β€œβ€) - in case of direct (little-endian) byte order, from the brand name of Intel processors using this order (see, for example, Intel x86 )
    • 4D 4D ("MM") - in the reverse (big-endian) order of bytes, from the name of the brand of Motorola processors that used exactly this order (see, for example, Motorola 680x0 )
  • Bytes 2-3 - the identifier of the TIFF format (42 - the philosophical number (the answer to the main question of life, the universe and all that ), does not carry any meaning, in the latest version of the specification [TIFF vision 6.0 - June 3, 1992] the format always has indicated value):
    • 2A 00 - in direct byte order
    • 00 2A - in reverse byte order

Thus, there are two possible signature options (depending on the byte order in the file):

  • 49 49 2A 00 - in direct byte order
  • 4D 4D 00 2A - in reverse byte order

Further, bytes 4–7, the offset in bytes from the beginning of the file (aligned along the WORD ( machine word ) boundary) to the first IFD directory ( English image file directory ) is indicated.

Supported Storage Formats

The format structure is flexible and allows you to save images in color mode with a palette, as well as in various color spaces:

  • Binary (two-color, sometimes incorrectly called black and white)
  • Halftone
  • With indexed palette
  • RGB
  • CMYK
  • Ycbcr
  • Cie lab

Modes of 8, 16, 32, and 64 bits per channel are supported when integer, as well as 32 and 64 bits per channel when representing pixel values with floating point numbers .

Compression

It is possible to save the image in a TIFF file with and without compression. The compression ratio depends on the features of the stored image, as well as on the algorithm used. The TIFF format allows you to use the following compression algorithms:

  • PackBits ( RLE )
  • Lempel-Ziv-Welch (LZW)
  • Lz77
  • ZIP
  • Jbig
  • Jpeg
  • CCITT Group 3, CCITT Group 4

In this case, JPEG is simply an encapsulation of the JPEG format in the TIFF format. The TIFF format also allows you to store JPEG-compressed images without data loss (Lossless JPEG), but JPEG-LS compression is not supported in the TIFF Revision 6.0 specification.

Algorithms CCITT Group 3 and 4 are designed for encoding binary raster images . Initially, they were developed for fax networks (therefore they are sometimes called Fax 3, Fax 4). At the moment, they are also used in printing, digital cartography systems and geographical information systems. The Group 3 algorithm resembles RLE , since it encodes linear sequences of pixels , and Group 4 - two-dimensional pixel fields.

Tags

TIFF is a tag format and has the following types of labels:

Key Tags

These tags form the core of the format and must be supported by all products that implement the TIFF format in accordance with the specification.

The codeHexNameDescription
2540x00FENewSubfileTypeThe type of data stored in this file. This tag is a replacement for the SubfileType tag, and is very useful when multiple images are stored in one TIFF file.
2550x00FFSubfiletypeThe type of data stored in this file (old).
2560x0100ImageWidthThe number of columns in the image.
2570x0101ImageLengthThe number of lines in the image.
2580x0102BitsPerSampleThe number of bits in the component. This label assumes a different number of bits in each component (although in most cases it is the same). For example, for RGB there may be 8 for all components - red, green, and blue, or 8.8.8 for each of the components.
2590x0103CompressionThe type of compression used.
2620x0106PhotometricInterpretationThe color model used.
2630x0107ThreshholdingView of the conversion of gray to black and white for black and white images.
2640x0108CellwidthThe number of columns in the gray to black and white conversion matrix.
2650x0109CellheightThe number of rows in the gray to black and white conversion matrix.
2660x010AFillorderThe logical order of bits in bytes.
2700x010EImageDescriptionDescription of the image.
2710x010FMakeImage producer.
2720x0110ModelModel or serial number.
2730x0111StripoffsetsThe offset for each image strip in bytes.
2740x0112OrientationImage orientation.
2770x0115SamplesPerPixelThe number of components per pixel.
2780x0116RowsPerStripThe number of lines per strip.
2790x0117StripByteCountsThe number of bytes per strip after compression.
2800x0118MinSampleValueThe minimum value used by the component.
2810x0119MaxSampleValueThe maximum value used by the component.
2820x011AXresolutionThe number of pixels in the ResolutionUnit line.
2830x011BYresolutionThe number of pixels in the ResolutionUnit column.
2840x011CPlanarconfigurationA method for storing the components of each pixel.
2880x0120FreeoffsetsOffset in bytes to a string of unused bytes.
2890x0121FreeByteCountsThe number of bytes in the string of unused bytes.
2900x0122GrayResponseUnitResolution of data stored in GrayResponseCurve.
2910x0123GrayResponseCurveThe density of gray.
2960x0128ResolutionUnitResolution of data stored in XResolution, YResolution.
3050x0131SoftwareName and version of the software product.
3060x0132DatetimeDate and time the image was created.
3150x013BHostcomputerThe computer and operating system used to create the image.
3160x013CArtistThe name of the creator of the image.
3200x0140ColormapColor table for images using the color picker.
3380x0152ExtraSamplesDescription of additional components.
334320x8298CopyrightThe name of the owner of the rights to the stored image.

Extended Labels

These labels form the core of the format, but, unlike the main labels, their support is optional.

Special Tags

Special tags were originally identified by Adobe . They are designed to store special data types of software manufacturers in TIFF and must be registered by Adobe.

See also

  • Libtiff
  • GeoTIFF

Notes

  1. ↑ 1 2 G. Parsons, J. Rafferty, S. Zilles Tag Image File Format (TIFF) - image / tiff, Tag Image File Format (TIFF) - image / tiff MIME Sub-type Registration : MIME Sub-type Registration - Internet Engineering Task Force , 1998. - 8 p. - doi: 10.17487 / RFC2302
    <a href=" https://wikidata.org/wiki/Track:Q27231635 "> </a> <a href=" https://wikidata.org/wiki/Track:Q217082 "> </a>
  2. ↑ 1 2 G. Parsons, J. Rafferty Tag Image File Format (TIFF) - image / tiff, Tag Image File Format (TIFF) - image / tiff MIME Sub-type Registration : MIME Sub-type Registration - Internet Engineering Task Force , 2002. - 8 p. - doi: 10.17487 / RFC3302
    <a href=" https://wikidata.org/wiki/Track:Q217082 "> </a> <a href=" https://wikidata.org/wiki/Track:Q27231637 "> </a>
  3. ↑ 1 2 TIFF Revision 6.0 (unspecified) . Adobe Systems (June 3, 1992). Date of treatment May 31, 2012. Archived June 25, 2012.
Source - https://ru.wikipedia.org/w/index.php?title=TIFF&oldid=100477930


More articles:

  • Compact Space
  • Wharton, Joseph (entrepreneur)
  • Kantemir, Dmitry Konstantinovich
  • Battle of Nevills Cross
  • Jacques Taty
  • Park Chelyuskintsev (subway station)
  • East (metro station)
  • Kansky District
  • Dungeon Siege: Throne of Agony
  • South German Moor Head

All articles

Clever Geek | 2019