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

Imagick::getImageGravity

PHP function Edit on GitHub ✎

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

Gets the image gravity

Description

Imagick::getImageGravity(): int

Gets the current gravity value of the image. Unlike Imagick::getGravity(), this method returns the gravity defined for the current image sequence. 0x644

Parameters Parameters

Return Values

Returns the images gravity property. Refer to the list of gravity constants.

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