PHPackages                             mackrais/thumbnail-bundle - 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. mackrais/thumbnail-bundle

ActiveLibrary[Image &amp; Media](/categories/media)

mackrais/thumbnail-bundle
=========================

v1.0.4(4y ago)031GPL-3.0-or-laterPHP

Since Sep 9Pushed 4y agoCompare

[ Source](https://github.com/mackrais-organization/thumbnail-bundle)[ Packagist](https://packagist.org/packages/mackrais/thumbnail-bundle)[ RSS](/packages/mackrais-thumbnail-bundle/feed)WikiDiscussions master Synced 4d ago

READMEChangelog (2)Dependencies (3)Versions (6)Used By (0)

Basilicom Thumbnail bundle for Pimcore
======================================

[](#basilicom-thumbnail-bundle-for-pimcore)

Enables asynchronous, worker based thumbnail creation.

Adding a lot of high resolution images to a Pimcore system can cause high load situations. This is mitigated by deferring thumbnail creation via jobs.

If a new asset is added to the system, the normal instant thumbnail generation is prevented and a default placeholder thumbnail is added instead. Simultaneously, a thumbnail creation job is added for the Symfony messenger component. Once the message is processed, the placeholder image is being replaced with the correct thumbnail.

License
-------

[](#license)

GPLv3 - see: gpl-3.0.txt

Requirements
------------

[](#requirements)

- Pimcore &gt;= 6.0.0
- RabbitMQ if using the rabbitmq transport (for ampq on PHP 7.3 see: [php-amqp/php-amqp#337](https://github.com/php-amqp/php-amqp/issues/337))
- php-redis &gt;= 4.3 if using the redis transport
- redis server &gt;= 4.3 if using the redis transport (needs XREADGROUP support)

Installation
------------

[](#installation)

1. Install the bundle using composer `composer require mackrais/thumbnail-bundle`.
2. Configure the bundle (see below)
3. Execute `bin/console pimcore:bundle:enable MackraisThumbnailBundle`.

Configuration
-------------

[](#configuration)

1. As long as there is no patch preventing Pimcore from generating system thumbnails, change `vendor/pimcore/pimcore/models/Asset/Image.php`, in method `update` the line `$path = $this->getThumbnail(Image\Thumbnail\Config::getPreviewConfig())->getFileSystemPath();` to `$path = $this->getThumbnail(Image\Thumbnail\Config::getPreviewConfig())->getFileSystemPath(true);`
2. Disable low quality preview generation:

```
    # app/config/config.yml
    pimcore:
        assets:
            image:
                low_quality_image_preview:
                   enabled: false
```

2. Configure the Symfony Messenger (see ).

```
    # app/config/local/messenger.yaml
    framework:
        messenger:
            transports:
                #sample format:
                #async: "%env(MESSENGER_TRANSPORT_DSN)%"
                # sample redis transport, tested:
                async: "redis://redis:6379/messages"
                #doctrine does not work on pimcore, as only dbal is loaded, not doctrine!
                #async: "doctrine://default"
                # sample rabbitmq, tested:
                #async: "amqp://rabbitmq:rabbitmq@rabbitmq:5672/%2f/messages"
            routing:
                # async is whatever name you gave your transport above
                'Mackrais\ThumbnailBundle\Message\ThumbnailJob':  async
            # The bus that is going to be injected when injecting MessageBusInterface
            default_bus: command.bus
            buses:
                command.bus:
                    middleware:
                        - validation
```

3. Process async messenges (jobs) via console (or supervisord, see: ) add `-vv` to see individually processed messages

```
    bin/console messenger:consume

```

### Configure additional thumbnail formats

[](#configure-additional-thumbnail-formats)

If there is a text property `thumbnailConfig` on the asset (possibly inherited from a parent folder) containing a comma separated list of asset format names, thumbnails for these formats are going to be generated, too.

### Configure thumbnail placeholders

[](#configure-thumbnail-placeholders)

@todo not implemented, yet

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 60% 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 ~173 days

Total

5

Last Release

1746d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/488beefc5336c7cda0467a3c200e1d1d9ae6fe68639549b6b19179c8db74e3c7?d=identicon)[MackRais](/maintainers/MackRais)

---

Top Contributors

[![mackraiscms](https://avatars.githubusercontent.com/u/191235942?v=4)](https://github.com/mackraiscms "mackraiscms (9 commits)")[![christophluehr](https://avatars.githubusercontent.com/u/1352356?v=4)](https://github.com/christophluehr "christophluehr (4 commits)")[![mackrais](https://avatars.githubusercontent.com/u/8103057?v=4)](https://github.com/mackrais "mackrais (1 commits)")[![vmalyk](https://avatars.githubusercontent.com/u/5318027?v=4)](https://github.com/vmalyk "vmalyk (1 commits)")

###  Code Quality

TestsCodeception

### Embed Badge

![Health badge](/badges/mackrais-thumbnail-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/mackrais-thumbnail-bundle/health.svg)](https://phpackages.com/packages/mackrais-thumbnail-bundle)
```

###  Alternatives

[goat1000/svggraph

Generates SVG graphs

132849.6k3](/packages/goat1000-svggraph)[netresearch/rte-ckeditor-image

Image support in CKEditor for the TYPO3 ecosystem - by Netresearch

63991.3k4](/packages/netresearch-rte-ckeditor-image)[contao/image

Contao image library

131.7M9](/packages/contao-image)[intervention/image-driver-vips

libvips driver for Intervention Image

4495.5k6](/packages/intervention-image-driver-vips)

PHPackages © 2026

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