Download the PHP package basilicom/thumbnail-bundle without Composer
On this page you can find all versions of the php package basilicom/thumbnail-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download basilicom/thumbnail-bundle
More information about basilicom/thumbnail-bundle
Files in basilicom/thumbnail-bundle
Package thumbnail-bundle
Short Description This Bundle provides asynchronous thumbnail creation for Pimcore.
License GPL-3.0-or-later
Homepage https://basilicom.de
Informations about the package thumbnail-bundle
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
GPLv3 - see: gpl-3.0.txt
Requirements
- Pimcore >= 6.0.0
- RabbitMQ if using the rabbitmq transport (for ampq on PHP 7.3 see: https://github.com/pdezwart/php-amqp/issues/337)
- php-redis >= 4.3 if using the redis transport
- redis server >= 4.3 if using the redis transport (needs XREADGROUP support)
Installation
1) Install the bundle using composer composer require basilicom/thumbnail-bundle
.
3) Configure the bundle (see below)
2) Execute bin/console pimcore:bundle:enable BasilicomThumbnailBundle
.
Configuration
0) 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);
1) Disable low quality preview generation:
2) Configure the Symfony Messenger (see https://symfony.com/doc/current/messenger.html).
3) Process async messenges (jobs) via console
(or supervisord, see: https://symfony.com/doc/current/messenger.html)
add -vv
to see individually processed messages
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
@todo not implemented, yet