brocode/module-image-optimizer-amqp

Magento 2 module for the AMQP (RabbitMQ) integration of the Image Optimizer Queue module

Fund package maintenance!
By Me A Coffee

Installs: 2

Dependents: 0

Suggesters: 2

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:magento2-module

1.0.0 2024-06-29 14:13 UTC

This package is auto-updated.

Last update: 2025-03-29 01:08:50 UTC


README

This module provides a queue configuration for asynchronous image conversions in Magento 2. It is based on the brocode/module-image-optimizer and brocode/module-image-optimizer-queue

Goals of this module:

  • Use of Magento 2 RabbitMQ framework and reuse the queue implemention of the base module.

"Buy Me A Coffee"

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.