Log in
Model

UploadResizeConfig

Magento\Backend\Model\Image\UploadResizeConfig

What it does

This class provides configuration settings for image upload resizing in the Magento 2 backend.

Developers use it to retrieve maximum width/height dimensions and check if automatic image resizing is enabled when users upload images through the admin panel.

It reads these settings from the system configuration stored in the database.

Public Methods

  • getMaxWidth()
  • getMaxHeight()
  • isResizeEnabled()