Imagick
在线手册:中文 英文
PHP手册

Imagick::getImageType

(PECL imagick 0.9.10-0.9.9)

Imagick::getImageTypeGets the potential image type

说明

int Imagick::getImageType ( void )

Gets the potential image type.

返回值

Returns the potential image type.

错误/异常

错误时抛出 ImagickException .


Imagick
在线手册:中文 英文
PHP手册
PHP手册 - N: Gets the potential image type

用户评论:

lukeydeluxe at gmail dot com (15-Jan-2009 12:13)

Remember, the result, if successful, is an Array, wich means you should call for example "$var[format]" if you want to know what format the file uses.