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(10mo ago)9109.5k↓11.3%4[4 issues](https://github.com/FriendsOfShopware/FroshLazySizes/issues)mitTwigCI passing

Since Dec 15Pushed 10mo 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 1mo 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

43

—

FairBetter than 91% of packages

Maintenance46

Moderate activity, may be stable

Popularity40

Moderate usage in the ecosystem

Community20

Small or concentrated contributor base

Maturity56

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

312d 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.3k194.3M2.2k](/packages/intervention-image)[h4cc/wkhtmltoimage-amd64

Convert html to image using webkit (qtwebkit). Static linked linux binary for amd64 systems.

20110.7M15](/packages/h4cc-wkhtmltoimage-amd64)[s9e/text-formatter

Multi-purpose text formatting and markup library. Plugins offer support for BBCodes, Markdown, emoticons, HTML, embedding third-party media (YouTube, etc...), enhanced typography and more.

2413.1M29](/packages/s9e-text-formatter)[intervention/image-laravel

Laravel Integration of Intervention Image

1496.5M102](/packages/intervention-image-laravel)[james-heinrich/phpthumb

The PHP thumbnail generator

318516.1k6](/packages/james-heinrich-phpthumb)[dereuromark/media-embed

A PHP library to deal with all those media services around, parsing their URLs and embedding their audio/video content in websites.

182530.3k11](/packages/dereuromark-media-embed)

PHPackages © 2026

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