Skip to content

Magento 2.4.x Media Gallery

In Magento 2.4.x, merchants can use the an enhanced Media Gallery to organize and manage their media files on the server. This new Media Gallery contains the same functionalities as the existing Media Storage, but includes an improved user interface and a closer integration with Adobe Stock. You can read more about using the gallery here.

Consumer Setup

Full functionality for new Media Gallery requires media.gallery.synchronization and media.content.synchronization queue consumers to be started for initial synchronization. Configuration in your env.php should look similar to this in order to run these consumers.

'cron_consumers_runner' => [
        'cron_run' => true,
        'max_messages' => 0,
        'consumers' => [
            'async.operations.all',
            'product_action_attribute.update',
            'product_action_attribute.website.update',
            'exportProcessor',
            'negotiableQuotePriceUpdate',
            'sharedCatalogUpdatePrice',
            'sharedCatalogUpdateCategoryPermissions',
            'quoteItemCleaner',
            'inventoryQtyCounter',
            'media.storage.catalog.image.resize',
            'media.content.synchronization',
            'media.gallery.renditions.update',
            'media.gallery.synchronization',
            'codegeneratorProcessor'
        ]
],

Broker

By default, Magento uses Mysql as a broker for processing consumers. You can gain a significant performance increase by configuring RabbitMQ as the broker for consumers instead. Please see the MageMojo patch repo for instructions.