Call to undefined function imagecreatefromjpeg() and GD enabled

In my case, GD was missing after upgrading to PHP 7.3. So, I just added it by using the following command :

sudo apt-get install php7.3-gd

Find php.ini generally C:\xampp\php (in windows system) then open php.ini

  1. find extension=gd
  2. Uncomment (remove ; from the start of the line)
  3. Stop Xampp and start

Hope will work as here it's working!

enter image description here


I think you've installed an incomplete version of gd.
When you compile the gd extension, use the flag --with-jpeg-dir=DIR and --with-freetype-dir=DIR

ps. dont forget make clean

picture below is the incomplete version of gd:

enter image description here

picture below is the complete version of gd: enter image description here