kCGImageDestinationLossyCompressionQuality
The desired compression quality to use when writing the image data.
Declaration
let kCGImageDestinationLossyCompressionQuality: CFStringDiscussion
If present, the value associated with this key must be a CFNumberRef data type in the range 0.0 to 1.0. A value of 1.0 specifies to use lossless compression if destination format supports it. A value of 0.0 implies to use maximum compression.
See Also
Configuring the Image Behaviors
kCGImageDestinationBackgroundColorkCGImageDestinationDateTimekCGImageDestinationEmbedThumbnailkCGImageDestinationImageMaxPixelSizekCGImageDestinationMetadatakCGImageDestinationMergeMetadatakCGImageDestinationOptimizeColorForSharingkCGImageDestinationOrientationkCGImageDestinationPreserveGainMapkCGImageMetadataShouldExcludeGPSkCGImageMetadataShouldExcludeXMP