You are here

public function AutomatedCropInterface::setCropBoxSize in Automated Crop 8

Set crop box sizes.

The width & height of auto crop area must large than min sizes.

Parameters

int $width: The width of the crop area to be set.

int $height: The width of the crop area to be set.

Return value

self The plugin with two cropBox properties (width, height) set.

1 method overrides AutomatedCropInterface::setCropBoxSize()
AbstractAutomatedCrop::setCropBoxSize in src/AbstractAutomatedCrop.php
Set crop box sizes.

File

src/AutomatedCropInterface.php, line 87

Class

AutomatedCropInterface
Provides an interface defining the AutomatedCrop plugin objects.

Namespace

Drupal\automated_crop

Code

public function setCropBoxSize(int $width, int $height);