---
title: imageCropAndScaleOption
framework: vision
role: symbol
role_heading: Instance Property
path: vision/vngenerateimagefeatureprintrequest/imagecropandscaleoption
---

# imageCropAndScaleOption

An optional setting that tells the algorithm how to scale an input image before generating the feature print.

## Declaration

```swift
var imageCropAndScaleOption: VNImageCropAndScaleOption { get set }
```

## Discussion

Discussion Scaling is applied before generating the feature print. The default value is VNImageCropAndScaleOption.scaleFill. Scaling an image ensures that the entire image fits into the algorithm’s input image dimensions, which may require a change in aspect ratio. Each crop and scale option transforms the input image in a different way:

## See Also

### Scaling and Cropping Images

- [VNImageCropAndScaleOption](vision/vnimagecropandscaleoption.md)
