<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Vision",
  "identifier" : "/documentation/Vision/VNGenerateImageFeaturePrintRequest/imageCropAndScaleOption",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Vision"
    ],
    "preciseIdentifier" : "c:objc(cs)VNGenerateImageFeaturePrintRequest(py)imageCropAndScaleOption"
  },
  "title" : "imageCropAndScaleOption"
}
-->

# imageCropAndScaleOption

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

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

## Discussion

Scaling is applied before generating the feature print. The default value is [`VNImageCropAndScaleOption.scaleFill`](/documentation/Vision/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:

![A photo of a flower cropped and scaled according to Vision image options](images/Vision/scale-crop-options@2x.png)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)