<!--
{
  "availability" : [
    "iOS: 4.0.0 -",
    "iPadOS: 4.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.7.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVAssetImageGenerator/maximumSize",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(cs)AVAssetImageGenerator(py)maximumSize"
  },
  "title" : "maximumSize"
}
-->

# maximumSize

The maximum size of images to generate.

```
var maximumSize: CGSize { get set }
```

## Discussion

The default value is <doc://com.apple.documentation/documentation/CoreFoundation/CGSize/zero>, which generates images at the asset’s unscaled dimensions.

Setting a size scales images to fit their defined bounding boxes. You define the aspect ratio of the scaled image by setting a value for the [`apertureMode`](/documentation/AVFoundation/AVAssetImageGenerator/apertureMode-swift.property) property.

---

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)