Store images not displayed after deployment

Last update: 2024-02-08
  • Created for:
  • Admin

This article provides a solution for when images are not being displayed correctly after deployment.

Affected products and versions

  • Adobe Commerce on cloud infrastructure 2.2.x, 2.3.x

Issue

When you use a storefront theme with image resizing, the images do not display or disappear from catalog pages when deployed.

Cause

This may occur due to loading the images from the cache.

Solution

If this happens, you can use the Magento command to regenerate the image cache and properly display the images.

To perform this, you need the SSH information and the store URL available through the Cloud Console.

  1. SSH to your project that was a source for the database dump, as described in SSH to environment in our developer documentation.

  2. Regenerate the image cache by running:

    php bin/magento catalog:images:resize
    
  3. Test the category pages through the store URL.

On this page