frosh / lazy-sizes
Automatically calculate the best thumbnail size. This means you don't have to worry about the "sizes" attribute for the images. Additionally, you gain a score.
Installs: 4 935
Dependents: 0
Suggesters: 1
Security: 0
Stars: 1
Watchers: 2
Forks: 1
Open Issues: 1
Language:Twig
Type:shopware-platform-plugin
Requires
- shopware/core: ~6.5.0
README
This plugin has built-in Lazyloading with auto generated sizes for best fitting sizes.
Install
Download the plugin from the release page and enable it in shopware.
By composer
composer require frosh/lazy-sizes
From source
Run npm install
in src/Resources/app/storefront
within the plugin directory
By zip
download latest release and upload into admin: https://github.com/FriendsOfShopware/FroshLazySizes/releases/latest/download/FroshLazySizes.zip
Adding more thumbnail sizes:
- Save new size in the folder of the media management
- then run the command
bin/console media:generate-thumbnails
on the console to update the thumbnails for all images in the database - Clear shop cache
License
The MIT License (MIT). Please see License File for more information.