PHP 获取图片的宽和高
$im=imagecreatetruecolor($w,$h);
这条代码通过指定宽和高创建了一个image数据源.
现在我知道一个图片的数据源,通过
imagecreatefromjpeg($filestring)获得的,
想反过来就宽和高,怎么办?
强调,参数必须是数据源
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn