---
title: cropAndScale
framework: coreml
role: symbol
role_heading: Type Property
path: coreml/mlfeaturevalue/imageoption/cropandscale
---

# cropAndScale

The option you use to crop and scale an image when creating an image feature value.

## Declaration

```swift
static let cropAndScale: MLFeatureValue.ImageOption
```

## Discussion

Discussion Use this value as a dictionary key for the options argument of an image-based MLFeatureValue initializer. Pair this key with a VNImageCropAndScaleOption value in the initializer’s options dictionary. For example, see init(cgImage:pixelsWide:pixelsHigh:pixelFormatType:options:).

## See Also

### Image options keys

- [cropRect](coreml/mlfeaturevalue/imageoption/croprect.md)
