Call to undefined function imagecreatefromjpeg()

July 13, 2008 · Filed Under PHP · Comment 

We moved the site to the new server, The site was working fine , but while uploading the image, I encountered the following error

Fatal error: Call to undefined function imagecreatefromjpeg() in /home/domain/public_html/admin/configs.php on line 53

The solution to the Problem is
The GD has to be installed with your PHP installation or it has to be uncommented in php.ini

Depending which one is in the library:

;extension=php_gd.dll
or
extension=php_gd2.dll