If you need to update Shopware WebP Extension by Magefan, please follow the steps below. Note that the update instructions depend on the method the WebP extension was installed with.

Update using composer (Method 1)

If the WebP module was installed via the composer (check if vendor/magefan/shopware-plugin-webp folder exists), then you need to run these simple CLI commands in Shopware directory:

composer remove magefan/shopware-plugin-webp
composer require magefan/shopware-plugin-webp ^x.x.x
# replace x.x.x with the version you want to use
bin/console plugin:refresh
bin/console plugin:install --activate MagefanWebP
bin/console cache:clear

Update using FTP  (Method 2)

If the WebP module was installed via FTP (check if custom/plugins/MagefanWebP folder exists), then follow these commands:

1. Download the latest version of the WebP extension archive from magefan.com.

2. Extract archive.

3. Make the backup copy of the custom/plugins/MagefanWebP folder on your server and then remove it.

4. Using FTP, copy the custom folder from the archive to your Shopware directory. 

Install Shopware WebP

5. Run update CLI commands in Shopware directory:

composer update rosell-dk/webp-convert
bin/console plugin:refresh
bin/console plugin:install --activate MagefanWebP
bin/console cache:clear