PHP 获取图片的宽和高,该如何处理

WBOY
Release: 2016-06-13 12:41:06
Original
1046 people have browsed it

PHP 获取图片的宽和高

  $im=imagecreatetruecolor($w,$h);	
Copy after login

这条代码通过指定宽和高创建了一个image数据源.

现在我知道一个图片的数据源,通过
imagecreatefromjpeg($filestring)获得的,
想反过来就宽和高,怎么办?

强调,参数必须是数据源

PHP 图片 行业数据 IM
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template