开发者

How to enable imagecreatefromgif/imagecreatefromjpeg/imagecreatefrompng in PHP?

It now gives:

PHP Fatal error:  Call to undef开发者_StackOverflowined function imagecreatefromjpeg()

But the gd library is enabled.


Install php5-gd:

on deb-based system:

sudo apt-get install php5-gd

If you are using php-fpm then restart it:

sudo /etc/init.d/php5-fpm restart

Found this solution here


Read http://www.php.net/manual/en/function.imagecreatefromjpeg.php#70832

It might be that your JPEG library is not enabled.


if using ubuntu, just install the with the command $ sudo apt install php-gd

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜