Use Imagick::queryFormats() to get a list of possible format names that might be returned by this function.
PHP - Manual: Imagick::getImageFormat
2024-11-15
(PECL imagick 2, PECL imagick 3)
Imagick::getImageFormat — Returns the format of a particular image in a sequence
Returns the format of a particular image in a sequence.
此函数没有参数。
Returns a string containing the image format on success.
错误时抛出 ImagickException。
Use Imagick::queryFormats() to get a list of possible format names that might be returned by this function.
官方地址:https://www.php.net/manual/en/imagick.getimageformat.php