Call to undefined function imagecreatefromjpeg()
来源:互联网 发布:河南安全教育网络平台 编辑:程序博客网 时间:2024/05/16 19:42
近日发现标题上的问题,特此总结下:
imagecreatefromjpeg函数是一个图像处理函数,在项目开发中做图片上传、缩略图时,在php中imagecreate函数是一个图形处理函数,主要用于新建一个基于调色板的图像了,然后在这个基础上我们可以创建一些图形数字字符之类的,但这个函数需要GD库支持,如果没有开启GD库使用时会提示Call to undefined function imagecreate()错误。
[root@iZwz96pb4qob9lpzadqipkZ ~]# php -r "var_dump(function_exists('imagecreatefromjpeg'));"bool(false)
发现线上环境的phpinfo为
少了JPEG Support
本地的本地wamp环境的phpinfo为
需重新编译,加上–with-jpeg-dir,可参考本博客lnmp环境安装
make
make install
重新打开线上的phpinfo
阅读全文
1 0
- Call to undefined function imagecreatefromjpeg()
- Call to undefined function imagecreatefromjpeg() in
- thinkphp open,Call to undefined function imagecreatefromjpeg()
- php Fatal error: Call to undefined function imagecreatefromjpeg()
- undefined function imagecreatefromjpeg()
- Call to undefined function mysql_create_db()
- Call to undefined function: mcrypt_module_open()
- Call to undefined function: mcrypt_module_open()
- Call to undefined function: mysql_connect()
- Call to undefined function mysql_connect()
- 解决Call to undefined function
- Call to undefined function mysql_connect()
- Call to undefined function curl_init()
- Call to undefined function imagettftext()
- Call to undefined function imagecreate()
- Call to undefined function mssql_connect()
- Call to undefined function ssh2_connect()
- Call to undefined function curl_init
- HDU
- 树梅派 内存交换空间swap 更改
- 函数作用域链
- 数据结构与算法:图
- POJ 1696 Space Ant(凸包变形)
- Call to undefined function imagecreatefromjpeg()
- MOOC清华《面向对象程序设计》第7章:负载监视器的设计v2.0(采用基于模板的策略模式)
- zencart 批量删除无图片产品 优化网站
- Json 接收问题
- 用jstl和el表达式获取List<Map<String,Object>>中的值
- Linux
- HDOJ 1848.Fibonacci again and again SG函数
- 【XSY1594】棋盘控制 概率DP
- SpringMVC前后台数据交互