---
title: VNImageCropAndScaleOption.centerCrop
framework: vision
role: symbol
role_heading: Case
path: vision/vnimagecropandscaleoption/centercrop
---

# VNImageCropAndScaleOption.centerCrop

An option that scales the image to fit its shorter side within the input dimensions, while preserving its aspect ratio, and center-crops the image.

## Declaration

```swift
case centerCrop
```

## See Also

### Crop and Scale Options

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