开发者

gd enabled but still reports PHP Fatal error: Call to undefined function imagecreatefromjpeg()

开发者 https://www.devze.com 2022-12-29 07:19 出处:网络
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(), ho

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

精彩评论

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

关注公众号