Log in
Model

Processor

Magento\Catalog\Model\Product\Gallery\Processor

What it does

This class handles all operations related to product image galleries in Magento 2.

Developers use it to programmatically add, update, remove, or retrieve product images, manage media attributes like base image or thumbnail, and handle image file operations including uploading and duplicating images from temporary storage.

Public Methods

  • getAttribute()
  • validate()
  • addImage()
  • updateImage()
  • removeImage()
  • getImage()
  • clearMediaAttribute()
  • setMediaAttribute()
  • getMediaAttributeCodes()
  • duplicateImageFromTmp()
  • getAffectedFields()
  • isScalar()