Model
Image
Magento\Catalog\Model\View\Asset\Image
What it does
This class represents a product image asset in Magento 2's catalog system, managing image URLs and file paths for different image types (thumbnail, small_image, etc.).
Developers use it when working with product images to generate URLs with transformation parameters (resizing, watermarks) or hashed paths, and to retrieve image metadata and file locations for rendering product images on the frontend.
Public Methods
- getUrl()
- getImageTransformationParameters()
- getContentType()
- getPath()
- getSourceFile()
- getSourceContentType()
- getContent()
- getFilePath()
- getContext()
- getModule()