<!--
{
  "availability" : [
    "iOS: 9.3.0 -",
    "iPadOS: 9.3.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.12.0 -",
    "tvOS: 9.2.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.2.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ImageIO",
  "identifier" : "/documentation/ImageIO/kCGImageDestinationOptimizeColorForSharing",
  "metadataVersion" : "0.1.0",
  "role" : "Global Variable",
  "symbol" : {
    "kind" : "Global Variable",
    "modules" : [
      "Image I/O"
    ],
    "preciseIdentifier" : "c:@kCGImageDestinationOptimizeColorForSharing"
  },
  "title" : "kCGImageDestinationOptimizeColorForSharing"
}
-->

# kCGImageDestinationOptimizeColorForSharing

A Boolean value that indicates whether to create the image using a colorspace.

```
let kCGImageDestinationOptimizeColorForSharing: CFString
```

## Discussion

The value of this key must be a <doc://com.apple.documentation/documentation/CoreFoundation/CFBoolean> value. The default value is <doc://com.apple.documentation/documentation/CoreFoundation/kCFBooleanFalse>. Include this key and set it to <doc://com.apple.documentation/documentation/CoreFoundation/kCFBooleanTrue> to color convert the image using its colorspace, which provides better compatibility with older devices.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)