---
title: VNImageCropAndScaleOption
framework: vision
role: symbol
role_heading: Enumeration
path: vision/vnimagecropandscaleoption
---

# VNImageCropAndScaleOption

Options that define how Vision crops and scales an input-image.

## Declaration

```swift
enum VNImageCropAndScaleOption
```

## Overview

Overview Scaling an image ensures that it fits within the algorithm’s input image dimensions, which may require a change in aspect ratio. The figure below shows how each crop-and-scale option transforms the input image:

## Topics

### Crop and Scale Options

- [VNImageCropAndScaleOption.centerCrop](vision/vnimagecropandscaleoption/centercrop.md)
- [VNImageCropAndScaleOption.scaleFit](vision/vnimagecropandscaleoption/scalefit.md)
- [VNImageCropAndScaleOption.scaleFill](vision/vnimagecropandscaleoption/scalefill.md)
- [VNImageCropAndScaleOption.scaleFitRotate90CCW](vision/vnimagecropandscaleoption/scalefitrotate90ccw.md)
- [VNImageCropAndScaleOption.scaleFillRotate90CCW](vision/vnimagecropandscaleoption/scalefillrotate90ccw.md)

### Creating a Scale Option

- [init(rawValue:)](vision/vnimagecropandscaleoption/init(rawvalue:).md)

## Relationships

### Conforms To

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

## See Also

### Configuring Image Options

- [imageCropAndScaleOption](vision/vncoremlrequest/imagecropandscaleoption.md)
