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

Imagick::getImageType

(PECL imagick 2, PECL imagick 3)

Imagick::getImageType — Gets the image type

Description

public function Imagick::getImageType(): int

Returns the type of the image, derived from its colorspace, its storage class and whether it carries an alpha channel. The pixels themselves are not examined, so the value reflects how the image is currently held rather than the smallest type it could be reduced to.

Parameters

This function has no parameters.

Errors/Exceptions

Throws ImagickException on error.


<Imagick::getImageTotalInkDensityImagick::getImageUnits>
^ImagickLast updated: Mon, 26 Oct 2026