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

# tiffRepresentation

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

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

## Discussion

Use the value of this property to write the TIFF data to a file. For each image representation, this property uses the TIFF compression option associated with that representation or `NSTIFFCompressionNone`, if no option is set.

If one of the receiver’s image representations does not support the creation of TIFF data natively (PDF and EPS images, for example), this property creates the TIFF data from that representation’s cached content. This property contains `nil` if the TIFF data cannot be created.

Additional image formats can be saved by using the `NSBitmapImageRep` method [`representation(using:properties:)`](/documentation/AppKit/NSBitmapImageRep/representation(using:properties:)).

## See Also

[`-  representationUsingType:properties:`](/documentation/AppKit/NSBitmapImageRep/representation(using:properties:))

Formats the bitmap representation’s image data using the specified storage type and properties and returns it in a data object.

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

Returns a TIFF representation of the image using the specified compression.

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

A TIFF representation of the bitmap image data.



---

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)