Download the PHP package brocode/module-image-optimizer-queue without Composer
On this page you can find all versions of the php package brocode/module-image-optimizer-queue. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download brocode/module-image-optimizer-queue
More information about brocode/module-image-optimizer-queue
Files in brocode/module-image-optimizer-queue
Package module-image-optimizer-queue
Short Description Magento 2 module adaption for generating asynchron messages for image optimization, based on internal Mysql Queue
License MIT
Informations about the package module-image-optimizer-queue
Image Optimizer Queue - a Magento 2 queue 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
Goals of this module:
- Use of Magento 2 basic MySQL queue framework to
- publish image files that need to be converted
- consume image conversion message and asynchronously convert them to the target format
Installation
Configuration
Basically nothing has to be configured and should run out of the box.
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:
Consider using supervisor or any other process manager to keep the consumer running.
Define multiprocess consumer Every consumer queue can be locked in Magento 2, to enable multiple conversion processes, following snippet can be added to the env.php to execute 5 conversion consumer parallel on every cron execution:
All versions of module-image-optimizer-queue with dependencies
brocode/module-queue-deduplication Version ^1.0