如何获取特定固定尺寸的图像,例如我已附加图像和代码供您审核
Please click on this link (image) to understand my question
<img src="<?php echo $picfile; ?>" border="0" width="<?php echo $imgsize[0]; ?>" height="<?php echo $imgsize[1]; ?>" align="left" style="border:1px solid black;margin-right:5px;">
最佳答案
您可以通过以下方式获取图像详细信息
$details = get_image_size($filename).
$details[3] 将包含 html 格式的宽度和高度供您使用。
关于php - 如何在php中固定图像大小?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9692419/