How can I fix Heroku imagecreatefromjpeg()

后端 未结 2 610
自闭症患者
自闭症患者 2021-01-13 19:38

heroku report me a error: Call to undefined function imagecreatefromjpeg() ..at line 177, where at line 177 is: case \'jpg\': case \'jpeg\': $image_data = imagecreatefromjp

2条回答
  •  别那么骄傲
    2021-01-13 20:04

    On Heroku, GD is a "shared" extension that you can enable in composer.json. No custom buildpack required, just add the ext-gd line in your composer.json:

    {
      "require": {
        "ext-gd": "*"
      }
    }
    

提交回复
热议问题