Log in
Model

Config

Magento\MediaGalleryRenditions\Model\Config

What it does

This class provides configuration settings for the Media Gallery Renditions feature in Magento 2.

Developers use it to check if media gallery and renditions are enabled, and to retrieve the maximum width and height dimensions for image renditions.

It bypasses config cache by reading directly from the database when needed, ensuring fresh configuration values.

Public Methods

  • isMediaGalleryEnabled()
  • isEnabled()
  • getWidth()
  • getHeight()