Search code examples
phpwebp

How to enable Webp for PHP 7 and MAMP


So my error is

Call to undefined function imagewebp()

I tried this command brew reinstall php72 --with-webp, but it does not work anymore.

I don't know where and how I should change my conf file.

If you have an idea, thank you


Solution

  • GD already is in mac, you don't need install it. update your homebrew and install webp manually. and after that php72

    > brew update
    
    > brew install webp
    > brew reinstall php72 --with-webp
    

    if not work try install without --with-webp how you install it manually maybe you don't need that parameter

    > brew reinstall php72
    

    and if all fail comment your osx version please.