开发者

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 ?
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜