---
title: VNImageCropAndScaleOption.scaleFitRotate90CCW
framework: vision
role: symbol
role_heading: Case
path: vision/vnimagecropandscaleoption/scalefitrotate90ccw
---

# VNImageCropAndScaleOption.scaleFitRotate90CCW

An option that rotates the image 90 degrees counterclockwise and then scales it, while preserving its aspect ratio, to fit on the long side.

## Declaration

```swift
case scaleFitRotate90CCW
```

## Discussion

Discussion This option optimizes portrait images to fit into landscape buffers for algorithms that are rotation agnostic, and fills the remaining space with transparent pixels.

## See Also

### Crop and Scale Options

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