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

Imagick::setResolution

PHP function Edit on GitHub ✎

(PECL imagick 2, PECL imagick 3)

Sets the image resolution

Description

Imagick::setResolution(float $x_resolution, float $y_resolution): bool

Sets the image resolution.

Parameters

x_resolution

The horizontal resolution.

y_resolution

The vertical resolution.

Return Values

Success

Notes

Imagick::setResolution must be called before loading or creating an image.

See Also

  • Imagick::setImageResolution
  • Imagick::getImageResolution

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