trait ResizeQualifierTrait

Trait CropModeTrait

Methods

cropMode(string $cropModeName)

Sets the crop mode.

zoom(float $zoom)

Controls how much of the original image surrounding the face to keep when using either the 'crop' or 'thumb' cropping modes with face detection.

Details

static CropMode cropMode(string $cropModeName)

Sets the crop mode.

Parameters

Name Type Description
$cropModeName string The crop mode. Use the constants defined in the CropMode class.

Return Value

CropMode

See also

CropMode

static Zoom zoom(float $zoom)

Controls how much of the original image surrounding the face to keep when using either the 'crop' or 'thumb' cropping modes with face detection.

Parameters

Name Type Description
$zoom float The zoom factor. (Default: 1.0)

Return Value

Zoom