Tagged Image File Format (TIFF)

TIFF is a tag-based file format designed to promote universal interchanges of digital image data. Because TIFF files do not have a single way to store image data, there are many versions of TIFF. LEADTOOLS supports the most common TIFF formats. The usual file extension is TIFF for single-image files, and MPT for multipage files (which can contain many images).

TIFF files can contain many comment fields of various types. You can use the LFile::ReadComment function to read comments in an existing file. Before writing a file, you can use the LFileSettings::SetComment function to create an array of comments to be saved in the file.

NOTE: To save a region inside a TIFF file, you must have an unlocked  Vector, Document, or Medical Imaging license.

LEADTOOLS also supports the ability to save a vector image as a DXF within a TIFF.

LEAD supports loading and saving multi-page files in this format.

LEADTOOLS can read and write TIFF files that use RGB, CMYK, or YCbCr color space. LEADTOOLS can also read and write files with PackBits compression.

LEADTOOLS can also read and write files with Lossless JPEG compression for 8, 12, and 16-bit grayscale and 24-bit color spacing.

You can read and write 12- bit grayscale. (Document and Medical Imaging toolkits)

You can read and write 16- bit grayscale. (Document and Medical Imaging toolkits)

You can read and write 32- bit grayscale. (Document and Medical Imaging toolkits)

The file constants associated with this file format are:

Constant

Read Support

Write Support

Description

FILE_TIF

1, 2, 3, 4, 5, 6, 7, 8, 16, 24, 32, 48, 64 BPP

1, 2, 3, 4, 5, 6, 7, 8, 12(grayscale) 16 (color and grayscale), 24, 32(color and grayscale), 48, 64 BPP

[3] Tagged Image File Format, with no compression and with RGB color space.

FILE_TIF_ABIC

1, 4 BPP

1, 4 BPP

[186] Tagged Image File Format, with ABIC compression. (Supports multi-page)
Supported in Document and Medical Imaging toolkits.

FILE_TIF_CMYK

24, 32 BPP

24, 32 BPP

[85] Tagged Image File Format, with no compression and with CMYK color space.

FILE_TIF_YCC

24 BPP

24 BPP

[93] Tagged Image File Format, with no compression and with YCbCr color space.

FILE_TIF_PACKBITS

1, 2, 3, 4, 5, 6, 7, 8, 16, 24, 32 BPP

1, 2, 3, 4, 5, 6, 7, 8, 16, 24, 32 BPP

[87] Tagged Image File Format with PackBits Compression and RGB color space.

FILE_TIF_PACKBITS_CMYK

24, 32 BPP

24, 32 BPP

[88] Tagged Image File Format with PackBits Compression and CMYK color space.

FILE_TIF_PACKBITS_YCC

24 BPP

24 BPP

[95] Tagged Image File Format with PackBits Compression and color YCbCr space.

FILE_TIFLZW

1, 2, 3, 4, 5, 6, 7, 8, 16, 24, 32, 48, 64 BPP

1, 2, 3, 4, 5, 6, 7, 8, 16, 24, 32, 48, 64 BPP

[17] Tagged Image File Format with LZW Compression and RGB color space.

FILE_TIFLZW_CMYK

24, 32 BPP

24, 32 BPP

[86] Tagged Image File Format with LZW Compression and CMYK color space

FILE_TIFLZW_YCC

24 BPP

24 BPP

[94] Tagged Image File Format with LZW Compression and YCbCr color space.

FILE_TIF_JPEG

8, 12 (Grayscale) 16 BPP (Grayscale)
24 BPP

8, 12 (Grayscale) 16 BPP (Grayscale)
24 BPP

[11] Tagged Image File Format with JPEG compression and YUV 4:4:4 color space Lossless.

FILE_TIF_JPEG_422

8 BPP (Grayscale)
24 BPP

8 BPP (Grayscale)
24 BPP

[24] Tagged Image File Format with JPEG compression and YUV 4:2:2 color space.

FILE_TIF_JPEG_411

8 BPP (Grayscale)
24 BPP

8 BPP (Grayscale)
24 BPP

[22] Tagged Image File Format with JPEG compression and YUV 4:1:1 color space.[

FILE_TIF_CMP

8 BPP (Grayscale)
24 BPP

8 BPP (Grayscale)
24 BPP

[138] Tagged Image File Format with CMP Compression.

FILE_TIF_JBIG

1, 2, 3, 4, 5, 6, 7, 8, 12 (Grayscale), 16, 24, 32 BPP

1, 2, 3, 4, 5, 6, 7, 8, 12 (Grayscale), 16, 24, 32 BPP

[139] Tagged Image File Format with JBIG Compression.

FILE_TIF_JBIG2

1 BPP

1 BPP

[187] Tagged Image File Format with JBIG2 Compression. (Supports multi-page)
(JBIG2 or Raster PDF support is required.)

FILE_TIF_DXF_R12

8 BPP

8 BPP

[176] Tagged Image File Format with a vector image saved as a DXF Release 12.

FILE_TIF_DXF_R13

8 BPP

8 BPP

[140] Tagged Image File Format with a vector image saved as a DXF Release 13.

FILE_TIF_J2K

8, 12 (Grayscale), 16 BPP (Grayscale)
24 BPP

8, 12 (Grayscale), 16 BPP (Grayscale)
24 BPP

[166] Tagged Image File Format with JPEG 2000 Compression. This file format contains only a stream of image data.

FILE_TIF_CMW

8, 12 (Grayscale), 16 BPP (Grayscale)
24 BPP

8, 12 (Grayscale), 16 BPP (Grayscale)
24 BPP

[167] Tagged Image File Format with Wavelet CMP Compression.

FILE_GEOTIFF

1, 2, 3, 4, 5, 6, 7, 8, 16 BPP (Grayscale), 24, 32, 48, 64 BPP

1, 2, 3, 4, 5, 6, 7, 8, 16 BPP (Grayscale), 24, 32, 48, 64 BPP

[174] GeoTIFF file format.

FILE_EXIF

24 BPP

24 BPP

[96] Exif file containing a TIFF image, with no compression and with RGB color space.

FILE_EXIF_YCC

24 BPP

24 BPP

[97] Exif file containing a TIFF image, with no compression and with YCbCr color space.

FILE_EXIF_JPEG_422

24 BPP

24 BPP

[98] Exif file containing a JPEG compressed image.

FILE_EXIF_JPEG_411

24 BPP

24 BPP

[101] Exif 2.0 file containing a JPEG compressed image.

FILE_CCITT

1 BPP

1 BPP

[25] Tagged Image File Format, compressed using CCITT.

FILE_CCITT_GROUP3_1DIM

1 BPP

1 BPP

[27] Tagged Image File Format, compressed using CCITT, group 3, 1 dimension.

FILE_CCITT_GROUP3_2DIM

1 BPP

1 BPP

[28] Tagged Image File Format, compressed using CCITT, group 3, 2 dimensions.

FILE_CCITT_GROUP4

1 BPP

1 BPP

[29] Tagged Image File Format, compressed using CCITT, group 4.

FILE_TIF_UNKNOWN

NA

NA

[141] Tagged Image File Format, with unknown compression.

FILE_TIF_ABC

1 BPP

1 BPP

[180] Tagged Image File Format with ABC compression.

FILE_TIF_MRC

1 BPP

1 BPP

[177] Tagged Image File Format with MRC compression.

FILE_TIF_LEAD_MRC

1 BPP

1 BPP

[315] Tagged Image File Format with LEAD MRC compression.

FILE_TIF_ZIP

1, 2, 3, 4, 5, 6, 7, 8, 12 (Grayscale), 16, 24, 32 BPP

None

[189] Tagged Image File Format with ZIP compression.

Required DLL: LFTIF. For a listing of the exact DLLs needed, based on the toolkit version, refer to Files To Be Included With Your Application.

For loading or saving CMYK files or LAB color space files, you will also need the LTCLR DLL.

Related Formats: CMP - LEAD Compressed, CMP - LEAD 1-Bit Format, EXIF - Exif Formats, JPG - JPEG Compressed, JP2 - JPEG 2000 Compressed, TIFF CCITT and other Fax Formats.

Platforms

Win32, x64.