ntriga / pimcore-asset-thumbnails
Generates thumbnails of assets so they don't need to be generated on the fly
11.1.0
2024-11-04 14:30 UTC
Requires
- php: ^8.1
- pimcore/pimcore: ^11.2
This package is auto-updated.
Last update: 2025-02-13 19:12:58 UTC
README
Use helpers for generating thumbnails
Features
- Assets: Generate thumbnails for assets in messages
Dependencies
Installation
You can install the package via composer:
composer require ntriga/pimcore-asset-thumbnails
Add Bundle to bundles.php
:
return [ Ntriga\PimcoreAssetThumbnails\PimcoreAssetThumbnailsBundle::class => ['all' => true], ];
Usage
Dispatch the message to generate thumbnails
$productThumbs = [ 'ThumbnailConfigName', ]; $asset = new Asset\Image(); $this->bus->dispatch(new GenerateImageThumbnailsMessage( $asset->getId(), $productThumbs, ));
Run the worker to generate thumbnails
bin/console messenger:consume ntriga_thumbs
Changelog
Please see CHANGELOG for more information on what has changed recently.
Credits
License
GNU General Public License version 3 (GPLv3). Please see License File for more information.