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 | |
| Developer | Microsoft and Aldus , now Adobe Systems |
| Published | 1986 |
| Format type | raster graphics |
| Developed in | EXIF , 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 order00 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 order4D 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 code | Hex | Name | Description |
|---|---|---|---|
| 254 | 0x00FE | NewSubfileType | The 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. |
| 255 | 0x00FF | Subfiletype | The type of data stored in this file (old). |
| 256 | 0x0100 | ImageWidth | The number of columns in the image. |
| 257 | 0x0101 | ImageLength | The number of lines in the image. |
| 258 | 0x0102 | BitsPerSample | The 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. |
| 259 | 0x0103 | Compression | The type of compression used. |
| 262 | 0x0106 | PhotometricInterpretation | The color model used. |
| 263 | 0x0107 | Threshholding | View of the conversion of gray to black and white for black and white images. |
| 264 | 0x0108 | Cellwidth | The number of columns in the gray to black and white conversion matrix. |
| 265 | 0x0109 | Cellheight | The number of rows in the gray to black and white conversion matrix. |
| 266 | 0x010A | Fillorder | The logical order of bits in bytes. |
| 270 | 0x010E | ImageDescription | Description of the image. |
| 271 | 0x010F | Make | Image producer. |
| 272 | 0x0110 | Model | Model or serial number. |
| 273 | 0x0111 | Stripoffsets | The offset for each image strip in bytes. |
| 274 | 0x0112 | Orientation | Image orientation. |
| 277 | 0x0115 | SamplesPerPixel | The number of components per pixel. |
| 278 | 0x0116 | RowsPerStrip | The number of lines per strip. |
| 279 | 0x0117 | StripByteCounts | The number of bytes per strip after compression. |
| 280 | 0x0118 | MinSampleValue | The minimum value used by the component. |
| 281 | 0x0119 | MaxSampleValue | The maximum value used by the component. |
| 282 | 0x011A | Xresolution | The number of pixels in the ResolutionUnit line. |
| 283 | 0x011B | Yresolution | The number of pixels in the ResolutionUnit column. |
| 284 | 0x011C | Planarconfiguration | A method for storing the components of each pixel. |
| 288 | 0x0120 | Freeoffsets | Offset in bytes to a string of unused bytes. |
| 289 | 0x0121 | FreeByteCounts | The number of bytes in the string of unused bytes. |
| 290 | 0x0122 | GrayResponseUnit | Resolution of data stored in GrayResponseCurve. |
| 291 | 0x0123 | GrayResponseCurve | The density of gray. |
| 296 | 0x0128 | ResolutionUnit | Resolution of data stored in XResolution, YResolution. |
| 305 | 0x0131 | Software | Name and version of the software product. |
| 306 | 0x0132 | Datetime | Date and time the image was created. |
| 315 | 0x013B | Hostcomputer | The computer and operating system used to create the image. |
| 316 | 0x013C | Artist | The name of the creator of the image. |
| 320 | 0x0140 | Colormap | Color table for images using the color picker. |
| 338 | 0x0152 | ExtraSamples | Description of additional components. |
| 33432 | 0x8298 | Copyright | The 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 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
- β 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
- β 1 2 TIFF Revision 6.0 . Adobe Systems (June 3, 1992). Date of treatment May 31, 2012. Archived June 25, 2012.