---
title: cropAndScaleAction
framework: vision
role: symbol
role_heading: Instance Property
path: vision/coremlrequest/cropandscaleaction
---

# cropAndScaleAction

An optional setting that tells the Vision algorithm how to scale an input image.

## Declaration

```swift
var cropAndScaleAction: ImageCropAndScaleAction
```

## Discussion

Discussion Scaling an image ensures that the entire image fits into the algorithm’s input image dimensions, which may require a change in aspect ratio. The default value is ImageCropAndScaleAction.scaleToFill.

## See Also

### Configuring a request

- [supportedIdentifiers](vision/coremlrequest/supportedidentifiers.md)
- [modelContainer](vision/coremlrequest/modelcontainer.md)
- [CoreMLModelContainer](vision/coremlmodelcontainer.md)
- [ComputeStage](vision/computestage.md)
- [ImageCropAndScaleAction](vision/imagecropandscaleaction.md)
