gd enabled but still reports PHP Fatal error: Call to undefined function imagecreatefromjpeg()
Has anyone met this problem ?
I've checked the output of phpinfo()
,and see gd
is enabled.
UPDATE
I built PHP with --with-gd
, but only GIF Support
and PNG Support
are in the output of phpinfo(), how do I enable JPEG S开发者_运维技巧upport
?
Sounds like it wasn't built against libjpeg. See if "JPEG Support" in the gd section is "enabled".
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 is your
Configure Command
? Does it say anything about jpg ?
精彩评论