草庐IT

imagecreatefromgif

全部标签

php - 如何在 PHP 中启用 imagecreatefromgif/imagecreatefromjpeg/imagecreatefrompng?

它现在给出:PHPFatalerror:Calltoundefinedfunctionimagecreatefromjpeg()但是gd库是启用的。 最佳答案 安装php5-gd:在基于deb的系统上:sudoapt-getinstallphp5-gd如果你正在使用php-fpm然后重启它:sudo/etc/init.d/php5-fpmrestart找到这个solutionhere 关于php-如何在PHP中启用imagecreatefromgif/imagecreatefromjpe