Log in
Model

Image

Magento\Catalog\Model\ResourceModel\Product\Image

What it does

This resource model retrieves product image information from the database, including both all available images and only those actively used in the catalog.

Developers use this class when they need to analyze product image usage, clean up unused images, or generate reports about catalog media assets.

It provides efficient batch processing through generators to handle large product catalogs without memory issues.

Public Methods

  • getAllProductImages()
  • getUsedProductImages()
  • getCountAllProductImages()
  • getCountUsedProductImages()