---
title: RandomImageCropper
framework: createmlcomponents
role: symbol
role_heading: Structure
path: createmlcomponents/randomimagecropper
---

# RandomImageCropper

Crops an image at a random location.

## Declaration

```swift
struct RandomImageCropper
```

## Topics

### Creating an image cropper

- [init(scale:aspectRatio:)](createmlcomponents/randomimagecropper/init(scale:aspectratio:).md)
- [init(targetSize:)](createmlcomponents/randomimagecropper/init(targetsize:).md)
- [init(targetWidth:targetHeight:)](createmlcomponents/randomimagecropper/init(targetwidth:targetheight:).md)

### Performing the augmentation

- [applied(to:generator:eventHandler:)](createmlcomponents/randomimagecropper/applied(to:generator:eventhandler:).md)

## Relationships

### Conforms To

- [RandomTransformer](createmlcomponents/randomtransformer.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Augmentations

- [ApplyEachRandomly](createmlcomponents/applyeachrandomly.md)
- [ApplyRandomly](createmlcomponents/applyrandomly.md)
- [AugmentationBuilder](createmlcomponents/augmentationbuilder.md)
- [AugmentationSequence](createmlcomponents/augmentationsequence.md)
- [Augmenter](createmlcomponents/augmenter.md)
- [ChooseRandomly](createmlcomponents/chooserandomly.md)
- [ShuffleRandomly](createmlcomponents/shufflerandomly.md)
- [UniformRandomFloatingPointParameter](createmlcomponents/uniformrandomfloatingpointparameter.md)
- [UniformRandomIntegerParameter](createmlcomponents/uniformrandomintegerparameter.md)
- [UpsampledAugmentationSequence](createmlcomponents/upsampledaugmentationsequence.md)
