Skip to main content

Crop

Crop an image.

To allow users of your project to crop their images, crop mutator supports relative crops. Thanks to that, you can let users crop their images without knowing which sizes you will need in the future.

To use a relative crop, just specify width, height, x and y of geometry in float numbers from interval (0, 1>.

The relative crop which will start in the first quarter of width and height and it's size will be half of the image will look like this: crop_0.5x0.5_0.25_0.25.

Relative crops are preferred way for cropping images by users as the only thing which matters is aspect ratio.

Available prefixes: crop

Examples crop_100x100 crop_100x100_10_10 crop_0.2x0.2_0.1_0.1