proxy代理   soft软件   IT 业界特快   norton 诺顿病毒库   代理列表   search FTP搜索   whois IP地理位置   blog 追求完美  
money理财   life生活   RSS聚合门户   firefox WEB浏览器   免费域名   typeset 假古文   AntiVirus 反病毒   ipcn 站点导航  

« 时过一年用Visio的组织结构画 ASP 公共开发体系 | Main | 清华大学硕士学位论文评分参考标准 计算器 »

June 15, 2005

PHP getimagesize imagecreatefromjpeg

版权声明:可以任意转载,转载时请务必以超链接形式标明文章原始出处和作者信息及本声明。
https://windtear.net/archives/2005/06/15/000690.html http://windtear.net/archives/2005/06/15/000690.html

几个朋友讨论图片索引
就想到了php和这些函数
getimagesize imagecreatefromjpeg
http://cn.php.net/manual/zh/function.getimagesize.php
http://cn.php.net/manual/zh/function.imagecreatefromjpeg.php

<?php
list($width, $height, $type, $attr) = getimagesize("images/ipcn.jpg");
echo
"<img src=\"images/ipcn.jpg\" $attr>";

preg_match("!width=\"(.*)\" height=\"(.*)\"!", $attr, $picSize);
Width  = $picSize['1'];
Height = $picSize['2'];
//http://cn.php.net/manual/zh/function.preg-match.php
?>
本blog WWW

Posted by windtear at June 15, 2005 10:58 PM

本站使用中的任何问题,请与 windtear @ windtear.net 联系
Copyright© 1999-2014 Windtear. All rights reserved.