php自带函数 getimagesize()
$info = getimagesize('1.png');
var_dump($info);
array(6) {
[0]=>
int(116)
[1]=>
int(116)
[2]=>
int(3)
[3]=>
string(24) "width="116" height="116""
["bits"]=>
int(1)
["mime"]=>
string(9) "image/png"
}
关键字词: