class AutoGravity extends GravityQualifier

Automatically identifies the most interesting regions to include when resizing.

Learn more: Automatic gravity for images | Automatic gravity for videos

Methods

classic()

No description

subject()

No description

object(mixed $gravity)

No description

autoFocus(array|AutoGravity|ObjectGravity|string|mixed ...$fallbackGravities)

Adds fallback gravities (usually AutoGravity).

Details

static string classic()

Return Value

string

static string subject()

Return Value

string

static string object(mixed $gravity)

Parameters

Name Type Description
$gravity mixed The gravity to use.

Return Value

string

AutoGravity autoFocus(array|AutoGravity|ObjectGravity|string|mixed ...$fallbackGravities)

Adds fallback gravities (usually AutoGravity).

Parameters

Name Type Description
...$fallbackGravities array|AutoGravity|ObjectGravity|string|mixed The fallback gravities.

Return Value

AutoGravity

Constants

AUTO

CLASSIC

SUBJECT