dev-master
9999999-devCreate webp image on resize of jpg and png files
BSD-3-Clause
The Requires
The Development Requires
by Armin Eden
image silverstripe webp
Wallogit.com
2017 © Pedro Peláez
Create webp image on resize of jpg and png files
This module creates webp images from resized jpeg and png images. More Information about webp images https://developers.google.com/speed/webp/, (*2)
composer require nomidi/silverstripe-webp-image
run dev/build?flush=1, (*3)
force Browser to load webp image // Example 1 (default)
edit .htaccess in your root directory, and add webp forwarding in compatible browsers, (*4)
force Browser to load webp image // Example 2 for information on usage of webp image in html see css-tricks.com, (*5)
Below you will find the code to quickly check if webp is available with the installed GD Library. Simply copy this code into a .php file in your root folder and open the file in a browser., (*6)
<?php
if (function_exists(imagewebp)) {
echo "WebP is available";
} else {
echo "WebP is not available";
}
Create webp image on resize of jpg and png files
BSD-3-Clause
image silverstripe webp