<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSBitmapImageRep/tiffRepresentation",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSBitmapImageRep(py)TIFFRepresentation"
  },
  "title" : "tiffRepresentation"
}
-->

# tiffRepresentation

A TIFF representation of the bitmap image data.

```
var tiffRepresentation: Data? { get }
```

## Discussion

Accessing this property results in a call to the [`tiffRepresentation(using:factor:)`](/documentation/AppKit/NSBitmapImageRep/tiffRepresentation(using:factor:)) method using the stored compression type and factor retrieved from the initial image data or changed using the [`setCompression(_:factor:)`](/documentation/AppKit/NSBitmapImageRep/setCompression(_:factor:)) method. If the stored compression type isn’t supported for writing TIFF data (for example, [`NSBitmapImageRep.TIFFCompression.next`](/documentation/AppKit/NSBitmapImageRep/TIFFCompression/next)), the stored compression is changed to [`NSBitmapImageRep.TIFFCompression.none`](/documentation/AppKit/NSBitmapImageRep/TIFFCompression/none) before calling the [`tiffRepresentation(using:factor:)`](/documentation/AppKit/NSBitmapImageRep/tiffRepresentation(using:factor:)) method using the compression that’s returned by [`getCompression(_:factor:)`](/documentation/AppKit/NSBitmapImageRep/getCompression(_:factor:)) (if applicable).

If a problem is encountered during generation of the TIFF, an [`NSTIFFException`](/documentation/AppKit/NSTIFFException) or an [`NSBadBitmapParametersException`](/documentation/AppKit/NSBadBitmapParametersException) is raised.

## See Also

[`-  TIFFRepresentationUsingCompression:factor:`](/documentation/AppKit/NSImage/tiffRepresentation(using:factor:))

Returns a data object that contains TIFF data with the specified compression settings for all of the image representations in the image.

[`TIFFRepresentation`](/documentation/AppKit/NSImage/tiffRepresentation)

A data object containing TIFF data for all of the image representations in the image.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)