PHPackages                             frosh/lazy-sizes - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Image &amp; Media](/categories/media)
4. /
5. frosh/lazy-sizes

ActiveShopware-platform-plugin[Image &amp; Media](/categories/media)

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.

3.2.0(1y ago)8127.2k↓42.1%4[4 issues](https://github.com/FriendsOfShopware/FroshLazySizes/issues)mitTwigCI passing

Since Dec 15Pushed 1y ago3 watchersCompare

[ Source](https://github.com/FriendsOfShopware/FroshLazySizes)[ Packagist](https://packagist.org/packages/frosh/lazy-sizes)[ RSS](/packages/frosh-lazy-sizes/feed)WikiDiscussions main Synced 2w ago

READMEChangelog (10)Dependencies (1)Versions (27)Used By (0)

LazySizes for Shopware 6
========================

[](#lazysizes-for-shopware-6)

[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md) [![Shopware Store](https://camo.githubusercontent.com/21d6d3f095a966e63d59f917e50a6b8296d6dd7bc12c90d74e345bff0df49f6b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f73686f70776172652d73746f72652d626c75652e7376673f7374796c653d666c61742d737175617265)](https://store.shopware.com/en/search?sSearch=FroshLazySizes)

This plugin has built-in Lazyloading with auto generated sizes for best fitting sizes.
[![2.png](src%2FResources%2Fstore%2Fimages%2F2.png)](src%2FResources%2Fstore%2Fimages%2F2.png)

Install
-------

[](#install)

Download the plugin from the release page and enable it in shopware.

### By composer

[](#by-composer)

`composer require frosh/lazy-sizes`

### From source

[](#from-source)

Run `npm install` in `src/Resources/app/storefront` within the plugin directory

### By zip

[](#by-zip)

download latest release and upload into admin:

Adding more thumbnail sizes:
----------------------------

[](#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

Selectively deactivate plugins lazysizes and lazyloading function
-----------------------------------------------------------------

[](#selectively-deactivate-plugins-lazysizes-and-lazyloading-function)

This might be useful to optimize loading images `above the fold` or if you don't like to use the plugin for specific images or tooltip.

### Specific images

[](#specific-images)

Add variable `lazysizes` with value `false` before using `sw_thumbnails` in the template.

### Cms sections

[](#cms-sections)

Add css class `no-lazysizes` to your sections

### Cms blocks

[](#cms-blocks)

Add css class `no-lazysizes` to your block

#### Overwrite `no-lazysizes` of sections class in block

[](#overwrite-no-lazysizes-of-sections-class-in-block)

Add class `lazysizes` to your block

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

41

—

FairBetter than 87% of packages

Maintenance36

Infrequent updates — may be unmaintained

Popularity40

Moderate usage in the ecosystem

Community20

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 85.1% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~37 days

Recently: every ~112 days

Total

26

Last Release

403d ago

Major Versions

1.0.3 → 2.0.22023-10-08

1.0.5 → 2.0.42023-10-14

1.1.0 → 2.1.02024-03-12

1.1.2 → 2.1.12024-04-10

2.2.0 → 3.0.02024-04-17

### Community

Maintainers

![](https://www.gravatar.com/avatar/7c45ef9077b73fce78afbfab2fa27e611a453dd77de003e2785ac84105d02bef?d=identicon)[shyim](/maintainers/shyim)

---

Top Contributors

[![tinect](https://avatars.githubusercontent.com/u/135993?v=4)](https://github.com/tinect "tinect (172 commits)")[![M-arcus](https://avatars.githubusercontent.com/u/25648755?v=4)](https://github.com/M-arcus "M-arcus (9 commits)")[![aragon999](https://avatars.githubusercontent.com/u/6317761?v=4)](https://github.com/aragon999 "aragon999 (5 commits)")[![shyim](https://avatars.githubusercontent.com/u/6224096?v=4)](https://github.com/shyim "shyim (5 commits)")[![stefanpoensgen](https://avatars.githubusercontent.com/u/22468102?v=4)](https://github.com/stefanpoensgen "stefanpoensgen (2 commits)")[![pumpi](https://avatars.githubusercontent.com/u/412142?v=4)](https://github.com/pumpi "pumpi (2 commits)")[![haarhoff-frs](https://avatars.githubusercontent.com/u/89089047?v=4)](https://github.com/haarhoff-frs "haarhoff-frs (1 commits)")[![wexollm](https://avatars.githubusercontent.com/u/65179649?v=4)](https://github.com/wexollm "wexollm (1 commits)")[![stephan4p](https://avatars.githubusercontent.com/u/40059275?v=4)](https://github.com/stephan4p "stephan4p (1 commits)")[![faddafrank](https://avatars.githubusercontent.com/u/24293515?v=4)](https://github.com/faddafrank "faddafrank (1 commits)")[![Isengo1989](https://avatars.githubusercontent.com/u/8600299?v=4)](https://github.com/Isengo1989 "Isengo1989 (1 commits)")[![ImgBotApp](https://avatars.githubusercontent.com/u/31427850?v=4)](https://github.com/ImgBotApp "ImgBotApp (1 commits)")[![kingschnulli](https://avatars.githubusercontent.com/u/673805?v=4)](https://github.com/kingschnulli "kingschnulli (1 commits)")

---

Tags

thumbnailshopwaremedia

### Embed Badge

![Health badge](/badges/frosh-lazy-sizes/health.svg)

```
[![Health](https://phpackages.com/badges/frosh-lazy-sizes/health.svg)](https://phpackages.com/packages/frosh-lazy-sizes)
```

###  Alternatives

[intervention/image

PHP Image Processing

14.4k214.2M2.8k](/packages/intervention-image)[intervention/image-laravel

Laravel Integration of Intervention Image

1589.8M226](/packages/intervention-image-laravel)[shopware/storefront

Storefront for Shopware

674.7M285](/packages/shopware-storefront)[frosh/tools

Provides some basic things for managing the Shopware Installation

88858.1k3](/packages/frosh-tools)[shopware/production

176216.5k](/packages/shopware-production)[shopware/elasticsearch

Elasticsearch for Shopware

144.1M21](/packages/shopware-elasticsearch)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
