---
title: outputSettings
framework: avfoundation
role: symbol
role_heading: Instance Property
path: avfoundation/avcapturestillimageoutput/outputsettings
---

# outputSettings

The compression settings for the output.

## Declaration

```swift
var outputSettings: [String : Any] { get set }
```

## Discussion

Discussion Use availableImageDataCVPixelFormatTypes and availableImageDataCodecTypes to determine what codec keys and pixel formats are supported. In iOS, the only currently supported keys are AVVideoCodecKey and kCVPixelBufferPixelFormatTypeKey. These keys are mutually exclusive—only one may be present. The recommended values are kCMVideoCodecType_JPEG for AVVideoCodecKey and kCVPixelFormatType_420YpCbCr8BiPlanarFullRange and kCVPixelFormatType_32BGRA for kCVPixelBufferPixelFormatTypeKey. In iOS 6.0 and later, the AVVideoQualityKey is supported, and may only be used when AVVideoCodecKey is set to AVVideoCodecJPEG.

## See Also

### Configuring image settings

- [isHighResolutionStillImageOutputEnabled](avfoundation/avcapturestillimageoutput/ishighresolutionstillimageoutputenabled.md)
- [availableImageDataCVPixelFormatTypes](avfoundation/avcapturestillimageoutput/availableimagedatacvpixelformattypes.md)
- [availableImageDataCodecTypes](avfoundation/avcapturestillimageoutput/availableimagedatacodectypes.md)
- [Video settings](avfoundation/video-settings.md)
