php 函数 imagecreatetruecolor() 在我的服务器中不起作用

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/7872360/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-26 03:32:05  来源:igfitidea点击:

function imagecreatetruecolor() is not working in my server

phpjoomla1.5fatal-error

提问by Jithesh Kt

In my website's cpanel it shows that

在我网站的 cpanel 中,它显示

Apache version : 2.0.63 PHP version : 5.2.9 MySQL version : 5.0.92-community Operating system : linux

Apache 版本:2.0.63 PHP 版本:5.2.9 MySQL 版本:5.0.92-community 操作系统:linux

I currently installed a joomla website inside the server. I am using a module named "negetics PSS" as my homepage banner.

我目前在服务器内安装了一个 joomla 网站。我正在使用一个名为“negetics PSS”的模块作为我的主页横幅。

Here is the working model of the banner : http://extensions.negetics.de/negetics-Presentation-Slider-Slim/demo-1.html

这是横幅的工作模型:http: //extensions.negetics.de/negetics-Presentation-Slider-Slim/demo-1.html

as you can see in the demo, the 6 handles of that slider is generated using php imagecreatetruecolorfunction. Now my problem is that, while i am using this module in my server, the module is generating error in its error log that :

正如您在演示中看到的,该滑块的 6 个手柄是使用 php imagecreatetruecolor函数生成的。现在我的问题是,当我在服务器中使用此模块时,该模块在其错误日志中生成错误:

[24-Oct-2011 02:32:27] PHP Fatal error: Call to undefined function imagecreatetruecolor() in.....

[2011 年 10 月 24 日 02:32:27] PHP 致命错误:调用未定义的函数 imagecreatetruecolor() in.....

as a result you can imagine, the handles are not generating. How do i fix this..? please Help me.

结果你可以想象,句柄没有生成。我该如何解决..?请帮我。

Thanks

谢谢

回答by chandoo

Install Gd library. follow the below link. GD library instalation

安装 Gd 库。按照下面的链接。GD库安装