---
title: previewDimensions
framework: avfoundation
role: symbol
role_heading: Instance Property
path: avfoundation/avcaptureresolvedphotosettings/previewdimensions
---

# previewDimensions

The size, in pixels, of the preview image that the system delivers with the capture.

## Declaration

```swift
var previewDimensions: CMVideoDimensions { get }
```

## Discussion

Discussion Use the previewPhotoFormat property in your photo settings object to request delivery of a preview image alongside the main photo output from the capture. When you request a preview, the photo output chooses dimensions that best match your requested size while preserving the aspect ratio of the captured photo. Aspect ratio is determined by capture format and by device orientation at the moment of capture. note: The photo capture system supports both preview and thumbnail images as companions to the full-size primary image in a photo capture. A preview image is intended for immediate display (as seen when taking photos in the iOS Camera app), and as such is sized for full-screen presentation on the current device. A thumbnail image is intended for embedding in the output image file and can be used by other software (such as Quick Look in a file browser) to allow users to quickly review the image without loading the entire image file; the size of thumbnail images may be limited depending on the output file format. This property provides the dimensions of the requested preview image, which is delivered in the photoOutput(_:didFinishProcessingPhoto:error:) method. Use this property in earlier delegate methods to find the size of the image before delivery. If you do not request a preview image, this property’s value has zero width and zero height.

## See Also

### Examining output dimensions

- [photoDimensions](avfoundation/avcaptureresolvedphotosettings/photodimensions.md)
- [deferredPhotoProxyDimensions](avfoundation/avcaptureresolvedphotosettings/deferredphotoproxydimensions.md)
- [rawPhotoDimensions](avfoundation/avcaptureresolvedphotosettings/rawphotodimensions.md)
- [embeddedThumbnailDimensions](avfoundation/avcaptureresolvedphotosettings/embeddedthumbnaildimensions.md)
- [rawEmbeddedThumbnailDimensions](avfoundation/avcaptureresolvedphotosettings/rawembeddedthumbnaildimensions.md)
- [livePhotoMovieDimensions](avfoundation/avcaptureresolvedphotosettings/livephotomoviedimensions.md)
- [portraitEffectsMatteDimensions](avfoundation/avcaptureresolvedphotosettings/portraiteffectsmattedimensions.md)
- [dimensionsForSemanticSegmentationMatte(ofType:)](avfoundation/avcaptureresolvedphotosettings/dimensionsforsemanticsegmentationmatte(oftype:).md)
- [photoProcessingTimeRange](avfoundation/avcaptureresolvedphotosettings/photoprocessingtimerange.md)
