Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<Imagick::setRegistryImagick::setResourceLimit>
^ImagickLast updated: Mon, 26 Oct 2026

Imagick::setResolution

(PECL imagick 2, PECL imagick 3)

Imagick::setResolution — Sets the image resolution

Description

public function 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

Returns true on success.

Notes

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

See Also


<Imagick::setRegistryImagick::setResourceLimit>
^ImagickLast updated: Mon, 26 Oct 2026