<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.11.0 -",
    "tvOS: 10.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PhotoKit",
  "identifier" : "/documentation/Photos/PHImageContentMode",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Photos"
    ],
    "preciseIdentifier" : "c:@E@PHImageContentMode"
  },
  "title" : "PHImageContentMode"
}
-->

# PHImageContentMode

Options for fitting an image’s aspect ratio to a requested size, used by the [`requestImage(for:targetSize:contentMode:options:resultHandler:)`](/documentation/Photos/PHImageManager/requestImage(for:targetSize:contentMode:options:resultHandler:)) method.

```
enum PHImageContentMode
```

## Overview

With either option, the resulting image may not exactly match the target size, depending on the [`deliveryMode`](/documentation/Photos/PHImageRequestOptions/deliveryMode) and [`resizeMode`](/documentation/Photos/PHImageRequestOptions/resizeMode) properties of the image request. To serve your request more quickly, Photos may provide a slightly larger image—one that it can generate more easily or one that is already cached.

## Topics

### Constants

[`default`](/documentation/Photos/PHImageContentMode/default)

Fits the image to the requested size using the default option, [`PHImageContentMode.aspectFit`](/documentation/Photos/PHImageContentMode/aspectFit).

[`PHImageContentMode.aspectFit`](/documentation/Photos/PHImageContentMode/aspectFit)

Scales the image so that its larger dimension fits the target size.

[`PHImageContentMode.aspectFill`](/documentation/Photos/PHImageContentMode/aspectFill)

Scales the image so that it completely fills the target size.



---

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)
