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
after systemctl restart php-fpm the Gd library works.
systemctl restart php-fpm