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
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: