Gd is enabled but PHP still reports Fatal error: Call undefined function imagecreatefromjpeg ()

Has anyone met this problem?

I checked the output phpinfo()

and saw that it was gd

included.

UPDATE

I have built PHP using --with-gd

but only tags GIF Support

and PNG Support

are in phpinfo () output, how to enable JPEG Support

?

+2


a source to share


2 answers


It looks like it was not built against libjpeg. See if JPEG support is enabled in the gd section .



+3


a source


I can only guess, but:



  • What version of php are you using? (did you compile it yourself?)
  • Under gd, do you see anything related to jpg?
  • What's yours Configure Command

    ? Does it say anything about jpg?
0


a source







All Articles