Log in
Model

Image

Magento\Catalog\Model\ResourceModel\Product\Image

What it does

This class provides methods to retrieve product image data from the Magento database, including both all visible images and only those actively used by products.

Developers would use this class when they need to audit, manage, or clean up product images in the catalog, such as identifying unused images for deletion or counting total images for reporting purposes.

Public Methods

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