<!--
{
  "availability" : [
    "iOS: 11.0.0 -",
    "iPadOS: 11.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.13.0 -",
    "tvOS: 11.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 4.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreML",
  "identifier" : "/documentation/CoreML/MLFeatureValue/ImageOption",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Core ML",
      "CoreML"
    ],
    "preciseIdentifier" : "c:@T@MLFeatureValueImageOption"
  },
  "title" : "MLFeatureValue.ImageOption"
}
-->

# MLFeatureValue.ImageOption

The initializer options you use to crop and scale an image when creating an image feature value.

```
struct ImageOption
```

## Topics

### Image options keys

[`cropRect`](/documentation/CoreML/MLFeatureValue/ImageOption/cropRect)

The option you use to crop an image when creating an image feature value.

[`cropAndScale`](/documentation/CoreML/MLFeatureValue/ImageOption/cropAndScale)

The option you use to crop and scale an image when creating an image feature value.

### Image option key initializers

[`init(_:)`](/documentation/CoreML/MLFeatureValue/ImageOption/init(_:))

Creates an image feature option key from a string.

[`init(rawValue:)`](/documentation/CoreML/MLFeatureValue/ImageOption/init(rawValue:))

Creates an image feature option key from a raw value string.



---

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)