Global Variable

kCGImageDestinationLossyCompressionQuality

Declaration

let kCGImageDestinationLossyCompressionQuality: CFString

Discussion

The desired compression quality to use when writing to an image destination. 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.