imagecreatefromjpeg and similar functions are not working in PHP

前端 未结 11 1148
攒了一身酷
攒了一身酷 2020-12-08 09:06

I’ve searched for this and the solutions provided in past questions are completely incomprehensible to me. Whenever I run functions like imagecreatefromjpeg, I

11条回答
  •  死守一世寂寞
    2020-12-08 09:33

    You must enable the library GD2.

    Find your (proper) php.ini file

    Find the line: ;extension=php_gd2.dll and remove the semicolon in the front.

    The line should look like this:

    extension=php_gd2.dll
    

    Then restart apache and you should be good to go.

提交回复
热议问题