cancel
Showing results for 
Search instead for 
Did you mean: 

How to remove white space around product image in magento 2 Luma?

How to remove white space around product image in magento 2 Luma?

I tried to resize product image in product description page and it does successfully however, it shows too much space around image. I need to put product detail tab below the product image but it shows so much space around image. Please advise me how to remove that space around product image.

<transparency>false</transparency> I have used this tag but still it shows so much space around image.

2 REPLIES

Re: How to remove white space around product image in magento 2 Luma?

Do you have a screenshot you could share to better explain the issue?

 

It could be that the dimensions that you're requesting to the display the product image doesn't match the aspect ratio of the images uploaded to admin. So in order for Magento to resize to fit, it needs to add white space around two sides of the photo. 

----
If you've found one of my answers useful, please give "Kudos" or "Accept as Solution" as appropriate. Thanks!

Re: How to remove white space around product image in magento 2 Luma?

Here I have attached four screen shots.
I tried to resize image in view.xml file, it shows too much space around
that. please advise me how to remove that space.