How to enable webp support in php gd library on xampp on linux

I have XAMPP for Linux 7.0.8 .

And is enabled with GD support .

screenshot from phpinfo (); about gd

I want to use imagewebp();. I have an error while using this parameter,

Fatal error: Missed error: function call undefined imagewebp ()

when searching for the solution I concluded is the solution from http://php.net/manual/en/image.installation.php

Image format | Configure Switch

webp | To enable webp add support --with-vpx-dir = DIR. Available since PHP 5.5.

I want to enable webp support.

What do I want to do?

+4
2

, XAMPP Native LAMP stack.

PHP XAMPP. .

My native Linux Apache/PHP, PHP .

0

Google webp . https://developers.google.com/speed/webp/download

, Ubuntu Debian GD - - . ( , ) PHP Ubuntu:

sudo apt-get install php5-gd

-. RPM.

+1

All Articles