(PECL imagick 2 >= 2.3.0, PECL imagick 3)
Imagick::getImageAlphaChannel — Checks if the image has an alpha channel
public Imagick::getImageAlphaChannel(): bool
Returns whether the image has an alpha channel.
This function has no parameters.
Returns true if the image has an alpha channel value and false if not, i.e. the image is RGB rather than RGBA or CMYK rather than CMYKA.
Throws ImagickException on error.
© 1997–2025 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/imagick.getimagealphachannel.php