---
title: ImageCropAndScaleAction
framework: vision
role: symbol
role_heading: Enumeration
path: vision/imagecropandscaleaction
---

# ImageCropAndScaleAction

A scale to apply to an input image before performing a request.

## Declaration

```swift
enum ImageCropAndScaleAction
```

## 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

### Getting the actions

- [ImageCropAndScaleAction.centerCrop](vision/imagecropandscaleaction/centercrop.md)
- [ImageCropAndScaleAction.scaleToFit](vision/imagecropandscaleaction/scaletofit.md)
- [ImageCropAndScaleAction.scaleToFill](vision/imagecropandscaleaction/scaletofill.md)
- [ImageCropAndScaleAction.scaleToFitPlus90CCWRotation](vision/imagecropandscaleaction/scaletofitplus90ccwrotation.md)
- [ImageCropAndScaleAction.scaleToFillPlus90CCWRotation](vision/imagecropandscaleaction/scaletofillplus90ccwrotation.md)

## Relationships

### Conforms To

- [CaseIterable](swift/caseiterable.md)
- [Decodable](swift/decodable.md)
- [Encodable](swift/encodable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Configuring a request

- [cropAndScaleAction](vision/calculateimageaestheticsscoresrequest/cropandscaleaction.md)
