Imagick::getImageType
(PECL imagick 2, PECL imagick 3)
Imagick::getImageType — Gets the image type
Description
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.
Return Values
Returns one of the following
imagick::IMGTYPE_*
constants. imagick::IMGTYPE_UNDEFINED and
imagick::IMGTYPE_OPTIMIZE are never returned.
Errors/Exceptions
Throws ImagickException on error.
来源:PHP Documentation Group · 作者与贡献记录 · CC BY 3.0。离线整理了版式、链接和媒体显示。
