Log in
Model

Image

Magento\Customer\Model\Metadata\Form\Image

What it does

This class handles image field validation and processing for customer and customer address forms in Magento 2.

It validates uploaded images against rules like file size, width, and height limits, ensures only valid image formats (GIF, JPG, PNG) are accepted, and processes the image data differently based on whether it's for a customer or address entity.

Developers use this when working with custom customer/address image attributes.