Log in
Model

ParamsBuilder

Magento\Catalog\Model\Product\Image\ParamsBuilder

What it does

This class builds and prepares all necessary parameters for generating product images in Magento 2, including dimensions, watermarks, quality settings, and visual properties like transparency and background.

Developers use this when they need to programmatically create or configure product image assets with specific attributes like size, aspect ratio, or watermark settings based on store configuration and theme settings.

Public Methods

  • build()