ImageInterface
Magento\Catalog\Api\Data\ProductRender\ImageInterface
What it does
This interface defines the contract for product image data in Magento 2's product rendering system.
Developers use it to access and manipulate product image properties like URL, dimensions (width/height), resized dimensions, labels, and image codes when displaying products in listings or detail pages.
It's primarily used in API responses and frontend rendering contexts where product images need to be retrieved with consistent data structure.
Public Methods
- setUrl()
- getUrl()
- getCode()
- setCode()
- setHeight()
- getHeight()
- getWidth()
- setWidth()
- getLabel()
- setLabel()
- getResizedWidth()
- setResizedWidth()
- setResizedHeight()
- getResizedHeight()
- getExtensionAttributes()
- setExtensionAttributes()