Log in
Interface

UploadResizeConfigInterface

Magento\Backend\Model\Image\UploadResizeConfigInterface

What it does

This interface defines the contract for retrieving image resize configuration in Magento 2's backend.

Developers implement this interface to provide maximum width/height dimensions and enable/disable status for automatically resizing images during upload in admin forms.

It's used by image uploader components to determine if and how images should be resized before processing.

Public Methods

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