Reputation: 2535
I am using Symfony 3 and when I try to use imagecreatefromjpeg function in PHP it gives the following error.
Attempted to call function "imagecreatefromjpeg" from namespace "AppBundle\Controller"
How can I fix this?
Upvotes: 0
Views: 679
Reputation: 155
Do you already have enable/installed gd extension? If not, you have to install it. You can add it in composer.json( "ext-gd": "*" )
Upvotes: 3