---
title: tiffRepresentation
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsbitmapimagerep/tiffrepresentation
---

# tiffRepresentation

A TIFF representation of the bitmap image data.

## Declaration

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

## Discussion

Discussion Accessing this property results in a call to the tiffRepresentation(using:factor:) method using the stored compression type and factor retrieved from the initial image data or changed using the setCompression(_:factor:) method. If the stored compression type isn’t supported for writing TIFF data (for example, NSBitmapImageRep.TIFFCompression.next), the stored compression is changed to NSBitmapImageRep.TIFFCompression.none before calling the tiffRepresentation(using:factor:) method using the compression that’s returned by getCompression(_:factor:) (if applicable). If a problem is encountered during generation of the TIFF, an NSTIFFException or an NSBadBitmapParametersException is raised.

## See Also

### Related Documentation

- [tiffRepresentation(using:factor:)](appkit/nsimage/tiffrepresentation(using:factor:).md)
- [tiffRepresentation](appkit/nsimage/tiffrepresentation.md)

### Producing Other Representations of Images

- [tiffRepresentationOfImageReps(in:)](appkit/nsbitmapimagerep/tiffrepresentationofimagereps(in:).md)
- [tiffRepresentationOfImageReps(in:using:factor:)](appkit/nsbitmapimagerep/tiffrepresentationofimagereps(in:using:factor:).md)
- [tiffRepresentation(using:factor:)](appkit/nsbitmapimagerep/tiffrepresentation(using:factor:).md)
- [representationOfImageReps(in:using:properties:)](appkit/nsbitmapimagerep/representationofimagereps(in:using:properties:).md)
- [representation(using:properties:)](appkit/nsbitmapimagerep/representation(using:properties:).md)
- [NSDrawBitmap(_:_:_:_:_:_:_:_:_:_:_:)](appkit/nsdrawbitmap(_:_:_:_:_:_:_:_:_:_:_:).md)
