---
title: ImageCropAndScaleAction.centerCrop
framework: vision
role: symbol
role_heading: Case
path: vision/imagecropandscaleaction/centercrop
---

# ImageCropAndScaleAction.centerCrop

An action that scales the image and maintains the aspect ratio to fit on the short side and crop centered on the long side.

## Declaration

```swift
case centerCrop
```

## See Also

### Getting the actions

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