Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

imagecreatefromjpeg and similar functions are not working in PHP

Tags:

php

gd

I’ve searched for this and the solutions provided in past questions are completely incomprehensible to me. Whenever I run functions like imagecreatefromjpeg, I get this:

Fatal error: Call to undefined function imagecreatefromjpeg() ...

I’m working on a new install of PHP; my last installation never had this problem. I don’t get what’s going on.

like image 835
UserIsCorrupt Avatar asked Nov 12 '12 04:11

UserIsCorrupt


1 Answers

Install GD Library

Which OS you are using?

http://php.net/manual/en/image.installation.php

Windows http://www.dmxzone.com/go/5001/how-do-i-install-gd-in-windows/

Linux http://www.cyberciti.biz/faq/ubuntu-linux-install-or-add-php-gd-support-to-apache/

like image 188
admoghal Avatar answered Sep 30 '22 15:09

admoghal