<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "macOS: 13.0.0 -",
    "tvOS: 17.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVCapturePhotoOutput/maxPhotoDimensions",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(cs)AVCapturePhotoOutput(py)maxPhotoDimensions"
  },
  "title" : "maxPhotoDimensions"
}
-->

# maxPhotoDimensions

The maximum resolution of the requested photo.

```
var maxPhotoDimensions: CMVideoDimensions { get set }
```

## Discussion

Set a value for this property to request images up to the specified dimensions. Images that a photo output returns may be smaller than the dimensions, but are never be larger. Once set, you can request images with any valid maximum photo dimensions by setting [`maxPhotoDimensions`](/documentation/AVFoundation/AVCapturePhotoSettings/maxPhotoDimensions) on [`AVCapturePhotoSettings`](/documentation/AVFoundation/AVCapturePhotoSettings) on a per photo basis.

The dimensions you set must match one returned by [`supportedMaxPhotoDimensions`](/documentation/AVFoundation/AVCaptureDevice/Format/supportedMaxPhotoDimensions) for the current active format.

> Tip:
> Changing this property may trigger a lengthy reconfiguration of the capture pipeline, so set this value before calling ``doc://com.apple.avfoundation/documentation/AVFoundation/AVCaptureSession/startRunning()`` on the capture session.

---

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)