Returns a data object containing TIFF data with the specified compression settings for all of the image representations in the receiver.
- macOS 10.0+
The type of compression to use. For a list of values, see the constants in
Provides a hint for compression types that implement variable compression ratios. Currently, only JPEG compression uses a compression factor.
A data object containing the TIFF data, or
nil if the TIFF data could not be created.
You can use the returned data object to write the TIFF data to a file. If the specified compression isn’t applicable, no compression is used. If a problem is encountered during generation of the TIFF data, this method may raise an exception.
If one of the receiver's image representations does not support the creation of TIFF data natively (PDF and EPS images, for example), this method creates the TIFF data from that representation's cached content.
Additional image formats can be saved by using the