get if bowser supports webp php
snippet in php

get if bowser supports webp php

user5824

if( strpos( $_SERVER['HTTP_ACCEPT'], 'image/webp' ) !== false ) {
    // webp is supported!
}