Call to undefined function imagewebp()

≯℡__Kan透↙ 提交于 2021-01-29 05:57:39

问题


I am wondering why i get this error. I updated my php from 5.6.22 to 5.6.40 and now i get this error. This was working fine in previous version but suddenly it turns out like this.

Fatal error: Call to undefined function imagewebp()

Also if try var_dump(function_exists('imagewebp')); it gives false now.

This is my current PHP version

This is the GD Module

So what has to be done to re-enable it in my server. I have a Cent-OS instance in AWS.


回答1:


The WBMP Support => enabled is not enough) You have to add --with-vpx-dir= to your configure line or --with-webp-dir for PHP 7.0+



来源:https://stackoverflow.com/questions/57651877/call-to-undefined-function-imagewebp

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!