<?php
// 获取图片宽度高度
list($PicWidth, $PicHeight) = getimagesize(dirname(__DIR__).'/'.$PicUrl);
echo "宽度为:" . $PicWidth;
echo "高度为:" . $PicHeight;
?>
2022-02-19 19:42:25
<?php
// 获取图片宽度高度
list($PicWidth, $PicHeight) = getimagesize(dirname(__DIR__).'/'.$PicUrl);
echo "宽度为:" . $PicWidth;
echo "高度为:" . $PicHeight;
?>