---
title: kCGImageSourcePrioritizeQuality
framework: Image I/O
role: symbol
role_heading: Global Variable
platforms: [iOS 27.0+, iPadOS 27.0+, Mac Catalyst 27.0+, macOS 27.0+, tvOS 27.0+, visionOS 27.0+, watchOS 27.0+]
path: imageio/kcgimagesourceprioritizequality
---

# kCGImageSourcePrioritizeQuality

A Boolean value that indicates whether to prioritize image quality over decode speed.

## Declaration

```swift
let kCGImageSourcePrioritizeQuality: CFString
```

## Discussion

Discussion When you set this key to kCFBooleanTrue, the image source decodes the full-size image using the highest-quality decode method available for the file. The value of this key is a CFBoolean. The default value is kCFBooleanFalse. Currently, image sources support this option only for camera RAW images. This key is a no-op when it is absent or kCFBooleanFalse, when the image isn’t a camera RAW format, or when no higher-quality decode method is available, so it is always safe to set. Include this key in the options dictionary you pass to the functions CGImageSourceCopyPropertiesAtIndex(_:_:_:) and CGImageSourceCreateImageAtIndex(_:_:_:). Example
