Store images not displayed after deployment
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.
-
SSH to your project that was a source for the database dump, as described in SSH to environment in our developer documentation.
-
Regenerate the image cache by running:
code language-bash php bin/magento catalog:images:resize
-
Test the category pages through the store URL.
recommendation-more-help
8bd06ef0-b3d5-4137-b74e-d7b00485808a