isHighResolutionPhotoEnabled
A Boolean value that specifies whether to capture still images at the highest resolution supported by the active device and format.
Declaration
var isHighResolutionPhotoEnabled: Bool { get set }Discussion
When this setting is false (the default), a photo capture output delivers images with the dimensions specified by the formatDescription property of the source AVCaptureDevice object’s active capture format. However, some devices and capture formats allow for still image capture at resolutions higher than their video capture (and streaming photo preview) resolution. To capture the highest possible resolution for still photos (described by the capture format’s highResolutionStillImageDimensions property), change this setting to true.
If any output connected to your capture session enables video stabilization (see the AVCaptureConnection preferredVideoStabilizationMode property), captured images may be around 10% smaller than the maximum still image dimensions. (This size change is an effect of video stabilization, which works by cropping and rotating to find the stable region in a moving image). Examine the AVCaptureResolvedPhotoSettings object provided to your photo capture delegate to find the actual dimensions of each captured photo.
See Also
Configuring photo settings
flashModeisAutoRedEyeReductionEnabledmaxPhotoDimensionsphotoQualityPrioritizationisCameraCalibrationDataDeliveryEnabledisAutoContentAwareDistortionCorrectionEnabledisAutoVirtualDeviceFusionEnabledvirtualDeviceConstituentPhotoDeliveryEnabledDevicesisDualCameraDualPhotoDeliveryEnabledisAutoDualCameraFusionEnabledisAutoStillImageStabilizationEnabled