« 无线路由的局域网接口与DHCP广播 | Main | 提一下 redhat 发行版 init.d 的 killproc »
July 13, 2006
php 编译: gd imagecreatefromjpeg
版权声明:可以任意转载,转载时请务必以超链接形式标明文章原始出处和作者信息及本声明。 https://windtear.net/archives/2006/07/13/001029.html http://windtear.net/archives/2006/07/13/001029.html php 编译: gd imagecreatefromjpeg 需求: 想要php支持JPG 之前用php自带的: gd GD Support enabled GD Version bundled (2.0.28 compatible) GIF Read Support enabled GIF Create Support enabled PNG Support enabled WBMP Support enabled XBM Support enabled 后来用了最新gd 并且改了php编译参数 --with-gd 改为 --with-gd=/usr/local/lib gd GD Support enabled GD Version 2.0 or higher GIF Read Support enabled GIF Create Support enabled JPG Support enabled PNG Support enabled WBMP Support enabled 测试的话可以: if(function_exists(imagecreatefromjpeg)) print "ok"; else print "no"; |
Posted by windtear at July 13, 2006 11:40 PM