I’ve searched for this and the solutions provided in past questions are completely incomprehensible to me. Whenever I run functions like imagecreatefromjpeg, I
imagecreatefromjpeg
For php 7 on Ubuntu:
sudo apt-get install php7.0-gd