---
title: MLFeatureValue.ImageOption
framework: coreml
role: symbol
role_heading: Structure
path: coreml/mlfeaturevalue/imageoption
---

# MLFeatureValue.ImageOption

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

## Declaration

```swift
struct ImageOption
```

## Topics

### Image options keys

- [cropRect](coreml/mlfeaturevalue/imageoption/croprect.md)
- [cropAndScale](coreml/mlfeaturevalue/imageoption/cropandscale.md)

### Image option key initializers

- [init(_:)](coreml/mlfeaturevalue/imageoption/init(_:).md)
- [init(rawValue:)](coreml/mlfeaturevalue/imageoption/init(rawvalue:).md)

## Relationships

### Conforms To

- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Creating image feature values

- [init(pixelBuffer:)](coreml/mlfeaturevalue/init(pixelbuffer:).md)
- [init(CGImage:pixelsWide:pixelsHigh:pixelFormatType:options:)](coreml/mlfeaturevalue/init(cgimage:pixelswide:pixelshigh:pixelformattype:options:)-2zg43.md)
- [init(CGImage:orientation:pixelsWide:pixelsHigh:pixelFormatType:options:)](coreml/mlfeaturevalue/init(cgimage:orientation:pixelswide:pixelshigh:pixelformattype:options:)-4nme0.md)
- [init(CGImage:constraint:options:)](coreml/mlfeaturevalue/init(cgimage:constraint:options:)-1j00l.md)
- [init(CGImage:orientation:constraint:options:)](coreml/mlfeaturevalue/init(cgimage:orientation:constraint:options:)-87vk0.md)
- [init(imageAtURL:pixelsWide:pixelsHigh:pixelFormatType:options:)](coreml/mlfeaturevalue/init(imageaturl:pixelswide:pixelshigh:pixelformattype:options:).md)
- [init(imageAtURL:orientation:pixelsWide:pixelsHigh:pixelFormatType:options:)](coreml/mlfeaturevalue/init(imageaturl:orientation:pixelswide:pixelshigh:pixelformattype:options:).md)
- [init(imageAtURL:constraint:options:)](coreml/mlfeaturevalue/init(imageaturl:constraint:options:).md)
- [init(imageAtURL:orientation:constraint:options:)](coreml/mlfeaturevalue/init(imageaturl:orientation:constraint:options:).md)
- [MLImageConstraint](coreml/mlimageconstraint.md)
