exif_read_data()
用这个函数对图片扫描一次
用这个函数对图片扫描一次
解决方案 »
- windows2003下安装php版discuz出现"mysql_connect() 不支持 请检查 mysql 模块是否正确加载"错误
- 如果变量初始化过程比较复杂,但又经常用到,通常把它存成什么文件?
- php socket 怎么传送XML格式的?
- php session_start cannot send session cookie
- foreach 多维数组怎么遍历和存储???
- php项目外包
- 在php 中,如果我想查询完,反回一个查询结果的资源id,我把数据库的连接关闭了,这个资源还可用吗 ? 如果不用有什么更好的方法呢,
- php中的mail函数+iis的SMTP不能发送邮件吗?
- 顷家荡产求mysql重新安装后无法启动服务问题。
- 用PHPMYADMIN如何将指定字段内容倒出来存成文本文件?
- http://www.shaadi.com/这样的开发出来大概要多少?
- 找了好多的在线编辑器,都没有满意的,大家有没有好的推荐
(PHP 3, PHP 4 )getimagesize -- Get the size of an image
Description
array getimagesize ( string filename [, array imageinfo])
The getimagesize() function will determine the size of any GIF, JPG, PNG, SWF, SWC, PSD, TIFF, BMP, IFF, JP2 or JPC image file and return the dimensions along with the file type and a height/width text string to be used inside a normal HTML IMG tag. Returns an array with 4 elements. Index 0 contains the width of the image in pixels. Index 1 contains the height. Index 2 is a flag indicating the type of the image: 1 = GIF, 2 = JPG, 3 = PNG, 4 = SWF, 5 = PSD, 6 = BMP, 7 = TIFF(intel byte order), 8 = TIFF(motorola byte order), 9 = JPC, 10 = JP2, 11 = JPX, 12 = JB2, 13 = SWC, 14 = IFF. These values correspond to the IMAGETYPE constants that were added in PHP 4.3. Index 3 is a text string with the correct height="yyy" width="xxx" string that can be used directly in an IMG tag.
$data = GetImageSize($srcFile,&$info);
好像是这个函数
--------------------------
300万超炫音乐免费试听,下载
请大家多多支持呀,
http://www.12.com.cn
$imagewidth = $imagehw[0];
$imageheight = $imagehw[1];
另外getImageSize确实不需要GD 楼上的楼上
文档里说得很清楚了最下面有一句话:本函数不需要 GD 图像库