Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/brosenberger/module-image-optimizer-amqp
https://github.com/brosenberger/module-image-optimizer-amqp
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/brosenberger/module-image-optimizer-amqp
- Owner: brosenberger
- License: mit
- Created: 2024-06-28T08:43:46.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-06-29T14:14:57.000Z (7 months ago)
- Last Synced: 2024-06-30T13:09:20.095Z (7 months ago)
- Language: PHP
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Image Optimizer AMQP - a Magento 2 amqp configuration for image optimizations
This module provides a queue configuration for asynchronous image conversions in Magento 2. It is based on the [brocode/module-image-optimizer](https://github.com/brosenberger/module-image-optimizer) and [brocode/module-image-optimizer-queue](https://github.com/brosenberger/module-image-optimizer)
**Goals of this module:**
* Use of Magento 2 RabbitMQ framework and reuse the queue implemention of the base module.[!["Buy Me A Coffee"](https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png)](https://www.buymeacoffee.com/brosenberger)
## Installation
```
composer require brocode/module-image-optimizer-amqp
bin/magento module:enable BroCode_ImageAmqpOptimizer
bin/magento setup:upgrade
```## Configuration
Basically nothing has to be configured and should run out of the box if RabbitMQ is already up and running.
Any image needed to be converted is scanned with a cron job from the base module and published to the configured queue instead of a direct conversion.
To consume any conversion event published, you can manually start the queue consumer via the Magento CLI:
```
bin/magento queue:consumers:start BroCodeImageConversionConsumer
```Consider using supervisor or any other process manager to keep the consumer running.