Wolfram Language & System 11.0 (2016)|Legacy Documentation

This is documentation for an earlier version of the Wolfram Language.View current documentation (Version 11.2)

TIFF (.tiff, .tif)


    Registered MIME type: image/tiff
    TIFF raster image format.
    Commonly used in image manipulation applications, page layout applications, scanners and other imaging devices, and for the archiving of images.
    Suitable for high-color-depth images.
    TIFF is an acronym for Tagged Image File Format.
    Binary format.
    Supports multiple color resolutions, color encodings, color palettes, and compression methods.
    Supports floating-point images with 32 and 64 bits per channel.
    Can store multiple images.
    Supports alpha channels.
    Introduced in 1986 by Aldus.

Import and ExportImport and Export

  • Import["file.tiff"] imports a TIFF file, returning a single Image object or a list of images.
  • Import["file.tiff",elem] imports the specified element from a TIFF file.
  • The import format can be specified with Import["file","TIFF"] or Import["file",{"TIFF",elem,}].
  • Export["file.tiff",expr] exports an image, graphics, or any other expression as an image to a TIFF file.
  • Export["file.tiff",{g1,g2,}] exports a list of graphics as a multi-image TIFF file.
  • Image objects are by default exported at their full raster size. Graphics and other arbitrary expressions are exported using the same raster size as their displayed form.
  • See the reference pages for full general information on Import and Export.
  • ImportString and ExportString support the TIFF format.

Notebook InterfaceNotebook Interface

  • In the notebook front end, Insert Picture and the Open menu allow import of a TIFF file into a cell.
  • Save Selection As exports the selected part of a notebook as a TIFF file.


  • General Import elements:
  • "Elements"list of elements and options available in this file
    "Rules"full list of rules for each element and option
    "Options"list of rules for options, properties, and settings
  • Data representation elements:
  • "ColorMap"color reduction palette
    "Data"array of pixel values
    "Graphics"the first image in the file, given as graphics
    "Image"first image in the file, represented as an Image object
    "RawData"array of color map indices
    {"Thumbnail",size}thumbnail of the first image (default size = Small)
  • Data representation elements for multi-image TIFF files:
  • "Animation"multi-image TIFF represented as an animation object
    "Image3D"images in the file, represented as an Image3D object
    {"GraphicsList",frames}images as a list of graphics (default frames=All)
    {"ImageList",frames}a list of images (default frames=All)
    {"ThumbnailList",frames,size}a list of thumbnails (default frames=All, size=Small)
  • Import by default uses "Image" for single-frame TIFF files and "ImageList" for multi-frame TIFF files.
  • Import of a multi-image TIFF with element "Graphics" or "Image" gives the first image.
  • Export by default generates a multi-image TIFF if the expression supplied is a list of Graphics or Image objects.
  • Export with element "Graphics" or "Image" always generates a single-image TIFF.
  • Advanced Import elements:
  • "BitDepth"bits used to represent each color channel in the file
  • orientation of the camera when the picture was taken
  • "Channels"
  • the number of color channels used in the file
  • "ColorProfileData"embedded color profile, given as a ColorProfileData object
    "ColorSpace"color encoding used in the file
  • whether the flash was fired
  • "GeoPosition"
  • latitude and longitude represented as GeoPosition object
  • "GPSDateTime"
  • image creation date and time registered by GPS
  • "ImageCount"number of images in the file
    "ImageEncoding"how images are compressed in the file
    "ImageResolution"image resolution specified in the file
    "ImageSize"raster dimensions
  • summary of the file
  • "SummarySlideView"slide view summary of all frames
  • Metadata elements:
  • "Exif"formatted Exif (Exchange image file format)
    "IPTC"formatted IPTC (International Press Telecommunications Council)
    "XMP"formatted XMP (Extensible metadata platform)
  • Raw metadata, as stored in the file, can be imported using "RawExif", "RawXMP", and "RawIPTC" elements that are returned in an association.
  • All Exif and IPTC tags can be imported individually. Common tags include:
  • "ApertureValue"lens aperture
    "Artist"photographer or image creator
    "DateTime"image creation date and time
    "ExposureTime"exposure time, given in seconds
  • flash information: flash fired, red-eye correction, etc.
  • "FNumber"F number
    "FocalLength"actual focal length of the lens, given in millimeters
    "GPSAltitude"altitude of the GPS position
    "GPSLatitude"latitude of the GPS position
    "GPSLongitude"longitude of the GPS position
    "Make"manufacturer of the recording equipment
    "Model"model name or model number of the equipment
    "Software"name and version of the software or firmware of the camera or image input device used to generate the image
  • For multi-image TIFF files, the above data representation and metadata elements are taken to be lists of the respective expressions.


  • Import and Export option:
  • ImageResolutionAutomaticresolution used for rendering the graphics
    ImageSizeAutomaticoverall image size
    IncludeMetaInformationAllmetadata types to import and export
    "ImageTopOrientation"Automaticorientation of the image as stored in the file
  • Import option:
  • "TakeRows"{1,-1}rows to import
  • Export options:
  • ByteOrdering-1ordering of bytes in the file
    "BitDepth"Automaticbit depth per channel used to store image data
    "ColorSeparation"Falsewhether to store color channels in separate planes
    "ColorSpace"Automaticcolor encoding to be used in the file
    "CompressionLevel"Automaticcompression level, given as a number between 0 and 1
    "DifferencingPredictor"Falsewhether to use horizontal differencing when using LZW or ZIP compression
    "ImageEncoding"Nonehow images are compressed in the file
  • Export["file.tiff",expr] creates a TIFF image with the same image size as the displayed form of expr.
  • Supported "ColorSpace" settings are: "Grayscale", "RGB", "CMYK", and "LAB".
  • Supported "BitDepth" settings are: Automatic, 1, 8, 16, 32, and 64.
  • By default, "Bit" images are exported to 1-bit, "Byte" images are exported to 8-bit, and other types are exported to 16-bit TIFF files.
  • The following settings for "ImageEncoding" are supported:
  • Noneno compression
    "JPEG"lossy JPEG compression
    "LZW"lossless LZW compression
    "PackBits"PackBits run-length encoding method
    "ZIP"lossless ZIP image data compression

ExamplesExamplesopen allclose all

Basic Examples  (5)Basic Examples  (5)

This imports a TIFF example file, rendering it as an Image:

Click for copyable input

Summary of the image:

Click for copyable input

Export an image to TIFF:

Click for copyable input

Import a multi-frame TIFF file as an animation:

Click for copyable input

Create a multi-frame TIFF file from a list of images:

Click for copyable input
Introduced in 1999
| Updated in 11.0