Image
Magento\Catalog\Model\ProductRender\Image
What it does
This model represents product image data for rendering purposes in Magento 2.
Developers use this class when working with product rendering APIs to store and retrieve image properties like URL, dimensions (width/height), resized dimensions, labels, and image codes.
It's commonly used in REST/GraphQL APIs to provide structured product image information to frontend applications or external systems.
Public Methods
- setUrl()
- getUrl()
- getCode()
- setCode()
- setHeight()
- getHeight()
- getWidth()
- setWidth()
- getLabel()
- setLabel()
- getResizedWidth()
- setResizedWidth()
- setResizedHeight()
- getResizedHeight()
- getExtensionAttributes()
- setExtensionAttributes()