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

2.0.1 2023-04-02 19:42 UTC

This package is auto-updated.

Last update: 2023-05-03 20:49:16 UTC


README

Software License Shopware Store

This plugin has built-in Lazyloading with auto generated sizes for best fitting sizes.
2.png

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.