php extension for webp
create a webp img with php
wget https://storage.googleapis.com/downloads.webmproject.org/releases/webp/libwebp-0.5.1-linux-x86-32.tar.gz
cd libwebp-0.5.1-linux-x86-32
./configure
make
make install
phpize
./configure --with-php-config=/usr/bin/php-config
make
sudo make install
<?php
error_reporting(E_ALL);
$file = "/home/www/test/webp/151933.jpg";
$quality = 70 //default is 75
$out_file = $file . ".webp";
image2webp($file, $out_file, $quality);
?>
https://code.google.com/p/webp/issues/list
https://developers.google.com/speed/webp/docs
https://developers.google.com/speed/webp/docs/api