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
- find extension=gd
- Uncomment (remove ; from the start of the line)
- Stop Xampp and start
Hope will work as here it's working!
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:
picture below is the complete
version of gd: