Call to undefined function imagecreatefromjpeg()
近日发现标题上的问题,特此总结下:
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
Call to undefined function imagecreatefromjpeg()相关推荐
- Call to undefined function imagecreatefromjpeg() in
错误提示如下: JPG图像:Fatal error : Call to undefined function imagecreatefromjpeg() in E:\wamp\www\admin ...
- Call to undefined function imagecreatefromjpeg() 解决方案
场景描述 一般的php环境下对于图片处理的GD库,一般只支持png和gif之类的图片处理,对于jpg格式的图片无法处理.通过php相关信息的查看也可以看到结果 GD Support => ena ...
- 解决Undefined function or method 'vgg_kmiter' for input arguments of type 'double'.
Undefined function or method 'vgg_kmiter' for input arguments of type 'double'. Error in ==> vgg_ ...
- php5.4 mysql connect,php5.4 Call to undefined function mysql_connect()
今天学习PHP中连接MySQL,使用mysql_connect()函数时,碰到以下错误: "Call to undefined function mysql_connect()", ...
- Call to undefined function mysql_connect()
PHP5 报错Fatal error: Call to undefined function mysql_connect() 解决方法一 在PHP代码中使用phpinfo()函数查看PHP基本信息 从 ...
- OpenGL.error.NullFunctionError: Attempt to call an undefined function”解决方案
在windows_64下利用命令:pip install pyopengl 安装python的openGL环境.结果运行示例代码出现以下错误: OpenGL.error.NullFunctionErr ...
- Call to undefined function Workerman\posix_getpid
2019独角兽企业重金招聘Python工程师标准>>> workerman 在centos下报PHP Fatal error: Call to undefined function ...
- php5.6.30环境报错Call to undefined function ImageCreate() 编译安装 gd库
php5.6.30环境报错Call to undefined function ImageCreate() 编译安装 gd库发现php5.6.30没有加载gd库[root@cn_vs_web04:/u ...
- Matlab:成功解决Undefined function or variable B
Matlab:成功解决Undefined function or variable "B" 目录 解决问题 解决方法 解决问题 Undefined function or vari ...
最新文章
- CUDA Samples: heat conduction(模拟热传导)
- html中盒子模型立体结构图
- jQuery结构分析
- python re findall 效率_python re模块findall()详解
- 前端学习(2532):vuex mutation
- 怎样永久更改嵌入式linux系统ip,如何修改嵌入式系统IP
- 智能关机软件 c语言,智能关机软件
- react 更新input 默认值setfieldsvalue_值得收藏的React面试题
- docker搭建私有仓库
- 如何 Scale Up/Down 应用?- 每天5分钟玩转 Docker 容器技术(126)
- 网络拓扑发现原理研究
- Oracle 自定义函数、存储过程
- 零基础学启发式算法(4)-模拟退火 (Simulated Annealing)
- atitit。全局变量的设计与实现 java php的异同
- 【matlab】设置中文版帮助
- pr用什么显卡比较好_用 PR 剪辑视频应该用什么 CPU 和显卡?
- 大麦 Android 选座场景性能优化全解析
- C. Minimum Notation #823 div2
- 玩转aws之(二)eks 设置efs(nfs)存储卷pvc
- Dialog_xml制作——博客地址
热门文章
- word文件限制编辑如何解除
- linux dc退出命令,Linux dc 命令 command not found dc 命令详解 dc 命令未找到 dc 命令安装 - CommandNotFound ⚡️ 坑否...
- win10下kafka集群安装+集成springboot
- TEA、XTEA、XXTEA加密解密算法(C语言实现)
- 【资讯】铂链加盟软银ARM人工智能联盟,与海尔、商汤科技同门
- 初学J2ME时,看过的好文章(三)
- svn中项目管理中ec_SVN的项目管理
- 【编译原理】 如何将控制语句翻译成四元式
- java入门编程(一)
- AlloyTeam:致我们终将组件化的 Web (多图)