问题
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