PHP code example of swissup / module-wsrv
1. Go to this page and download the library: Download swissup/module-wsrv library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
swissup / module-wsrv example snippets
html
<!-- Before -->
<img src="https://breeze.swissupdemo.com/media/catalog/product/w/s/wsh12-green_main_1.jpg?width=325&height=325"/>
<!-- After -->
<img src="//wsrv.nl?url=breeze.swissupdemo.com/media/catalog/product/w/s/wsh12-green_main_1.jpg&w=325&h=325&output=webp&fit=contain&cbg=fff"/>