trait CornerRadiusTrait

Trait CornerRadiusTrait

Methods

max()

Generates an asset with a circular crop using the 'max' radius value.

byRadius(array ...$values)

Rounds the specified corners of an image by specifying 1-4 pixel values as follows:

Details

static CornerRadiusTrait max()

Generates an asset with a circular crop using the 'max' radius value.

Return Value

CornerRadiusTrait

static CornerRadiusTrait byRadius(array ...$values)

Rounds the specified corners of an image by specifying 1-4 pixel values as follows:

1 value: All four corners are rounded equally according to the specified value. 2 values: 1st value => top-left & bottom-right. 2nd value => top-right & bottom-left. 3 values: 1st value => top-left. 2nd value => top-right & bottom-left. 3rd value => bottom-right. 4 values: Each corner specified separately, in clockwise order, starting with top-left.

Parameters

Name Type Description
...$values array

Return Value

CornerRadiusTrait