swissup/module-wsrv

Magento image optimization using wsrv.nl service

Installs: 186

Dependents: 0

Suggesters: 0

Security: 0

Stars: 5

Watchers: 3

Forks: 0

Open Issues: 0

Type:magento2-module

1.0.0 2023-11-30 13:10 UTC

This package is auto-updated.

Last update: 2024-12-01 00:09:55 UTC


README

Swissup_Wsrv — is a Magento image optimization module that uses free wsrv.nl service to resize and convert images to webp format.

Installation

composer require swissup/module-wsrv
bin/magento module:enable Swissup_Wsrv

How it works

Important

Since wsrv.nl will serve your images, your site must be accessible for the service. Eg. no .htaccess restrictions, no locally served domains or IP addresses.

The module replaces all image links with the links to wsrv.nl:

<!-- 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"/>

That's all. The rest of the job is handled by wsrv.nl.