How can I Enable Webp support in php GD library in MAC
问题 I have installed PHP PHP 7.2.0beta3 using homebrew. The phpinfo shows that the webmp support is enabled, But when i try to convert an image using a wrapper class it shows this error: Uncaught Error: Call to undefined function imagewebp() in /Users/rakibtg/Projects/PHP-ImageToWebp/ImageToWebp.php:37 Stack trace ... How I can enable webp support as well in macOS using homebrew php installed environment? 回答1: Try the following: brew reinstall php72 --with-webp Or, failing that, try: brew rm