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::getResourceLimitImagick::getSize>
^ImagickLast updated: Mon, 26 Oct 2026

Imagick::getSamplingFactors

(PECL imagick 2, PECL imagick 3)

Imagick::getSamplingFactors — Gets the horizontal and vertical sampling factor

Description

public function Imagick::getSamplingFactors(): array

Gets the horizontal and vertical sampling factor.

Parameters

This function has no parameters.

Return Values

Returns an associative array with the horizontal and vertical sampling factors of the image.

Errors/Exceptions

Throws ImagickException on error.


<Imagick::getResourceLimitImagick::getSize>
^ImagickLast updated: Mon, 26 Oct 2026