Product Images are not showing from the front end – Magento

If you found this post helpful, kindly share it and show your support :)

It is one of the common issues in Magento. Once you upload images from the back end, the images are shown in the back end but the images are not displayed on the front end.

To solve follow the below steps.

  1. Go to view.xml file under your Magento root directory.
The location of view.xml for a theme is: <theme_dir>/etc/view.xml

For eg, The location of view.xml of the Magento Blank theme:

app/design/frontend/Magento/blank/etc/view.xml

2. Check the product_image_white_borders value in the view.xml

$ grep product_image_white_borders <Magento root directory/app/design/frontend/<theme_dir>/etc/view.xml 
        <var name="product_image_white_borders">0</var>

If it is zero, change it to 1

Here is the output:-

$ grep product_image_white_borders <Magento root directory/app/design/frontend/<theme_dir>/etc/view.xml 
        <var name="product_image_white_borders">1</var>

That’s it. I hope it will fix the issue 🙂

Loading

Mohammed Noufal

I'm Mohammed Noufal, working as Server Admin for the last 10 years.  In my day-to-day life, l had to face different problems related to Web-hosting. On my website Errorlogz.com, you can find solutions for different Web-hosting-related problems. Sometimes, I spent hours searching/googling to find a solution. This inspired me to start a website that gives solutions to different Webhosting problems. This website includes basic Linux and windows commands, and different control panels like cPanel, Plesk, DirectAdmin, Webmin & so on. You can find solutions and or suggestions for different Web-hosting related problems from here. Hence I would like to say Errorlogz is your server protector.  I will be glad if Logdetect can help any one of the Server admins to find a solution to his problem.

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *