kCGImageDestinationOptimizeColorForSharing
A Boolean value that indicates whether to create the image using a colorspace.
Declaration
let kCGImageDestinationOptimizeColorForSharing: CFStringDiscussion
The value of this key must be a CFBoolean value. The default value is kCFBooleanFalse. Include this key and set it to kCFBooleanTrue to color convert the image using its colorspace, which provides better compatibility with older devices.
See Also
Configuring the Image Behaviors
kCGImageDestinationLossyCompressionQualitykCGImageDestinationBackgroundColorkCGImageDestinationDateTimekCGImageDestinationEmbedThumbnailkCGImageDestinationImageMaxPixelSizekCGImageDestinationMetadatakCGImageDestinationMergeMetadatakCGImageDestinationOrientationkCGImageDestinationPreserveGainMapkCGImageMetadataShouldExcludeGPSkCGImageMetadataShouldExcludeXMP