//php自帶函數 getimagesize()
$img_info = getimagesize('tomener.jpg');
echo '<pre>';
print_r($img_info);
輸出:
Array
(
[0] => 170
[1] => 254
[2] => 2
[3] => width="170" height="254"
[bits] => 8
[channels] => 3
[mime] => image/jpeg
)
這次要用到的就是第四個元素了
//php自帶函數 getimagesize()
$img_info = getimagesize('tomener.jpg');
echo '<pre>';
print_r($img_info);
輸出:
Array
(
[0] => 170
[1] => 254
[2] => 2
[3] => width="170" height="254"
[bits] => 8
[channels] => 3
[mime] => image/jpeg
)
這次要用到的就是第四個元素了
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。