php8.5
Home/ Manual/ imagick / imagick/ Imagick::setImageGravity

Imagick::setImageGravity

PHP function Edit on GitHub ✎

(PECL imagick 2 >= 2.3.0, PECL imagick 3)

Sets the image gravity

Description

Imagick::setImageGravity(int $gravity): bool

Sets the gravity property for the current image. This method can be used to set the gravity property for a single image sequence. 0x644

Parameters

gravity

The gravity property. Refer to the list of gravity constants.

Return Values

Void

Source: reference/imagick/imagick/setimagegravity.xml · from the official PHP manual (php/doc-en)