imagecreatefromjpeg and similar functions are not working in PHP
Install GD Library
Which OS you are using?
http://php.net/manual/en/image.installation.php
Windowshttp://www.dmxzone.com/go/5001/how-do-i-install-gd-in-windows/
Linuxhttp://www.cyberciti.biz/faq/ubuntu-linux-install-or-add-php-gd-support-to-apache/
You can still get Fatal error: Call to undefined function imagecreatefromjpeg()
even if GD is installed.
The solution is to install/enable jped lib:
On Ubuntu:
apt-get install libjpeg-dev apt-get install libfreetype6-dev
On CentOS:
yum install libjpeg-devel yum install freetype-devel
If compiling from source add --with-jpeg-dir --with-freetype-dir
or --with-jpeg-dir=/usr --with-freetype-dir=/usr
.
For more details check https://www.tectut.com/2015/10/solved-call-to-undefined-function-imagecreatefromjpeg/