cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 2.3 adds white stripes while resizing a product image for a frontend product list

Magento 2.3 adds white stripes while resizing a product image for a frontend product list

Hi,

after i have move to Magento 2.3 all my images on site look very bad. I have checked and try to understand what is the problem and found the images been resized.

you can see images show on my site:

Magento 2.3 adds white stripes while resizing a product image for a frontend product list.
her the original images I have uploaded to Magento.
1024X10241024X1024
10 REPLIES 10

Re: Magento 2.3 adds white stripes while resizing a product image for a frontend product list

Hi @decornmore,

Sorry I can't able to view your original image which your have uploaded. can you re-upload it?


If my info is useful, give kudos

Best regards
Madhuresan
Bootsgrid

Re: Magento 2.3 adds white stripes while resizing a product image for a frontend product list

Dumbo bedding set.jpg

Re: Magento 2.3 adds white stripes while resizing a product image for a frontend product list

Hi @decornmore,

Can you upload the original image again once? since I can't able to see it. Upload your image as png on your site and try this solution since png format has no background.

If my solution is useful, give kudos & accept as solution

Bets regards
Madhuresan
Bootsgrid

Re: Magento 2.3 adds white stripes while resizing a product image for a frontend product list

Hi,

i have 500 images i cant change all to PNG. also what Magento add  the white stripes? i never have any problem like this on Magento before this is new problem and a big one as my images look bad. how can we solve this? 

Re: Magento 2.3 adds white stripes while resizing a product image for a frontend product list

Re: Magento 2.3 adds white stripes while resizing a product image for a frontend product list

I checked both images given and the product details page images of these sites. In the showhunts.com the image size is 400X400 with tightly placed in the DIV element used to display product image. In the site babybeddingdesign.com, the product image holder element not in square shape it is 340X448 size. I checked the product image uploaded from the admin side and found it correct size (https://babybeddingdesign.com/pub/media/catalog/product/d/i/disney_baby_minnie_mouse_flower_crib_set...). I tried to check the border issue by changing the product image settings provided in the theme settings. It could not solved the issue. Also, I checked default product image size and it is default values and look like changed. I noticed an extension used for gallery. I disabled it from admin side to test and it couldn't make any changes in the border issue so enabled it. The product image in the frontend loading from the cache it is resized image with white border. The white background is from the resize. I checked the source file to update the product image size values for the theme installed. I am unable to find out it.

Re: Magento 2.3 adds white stripes while resizing a product image for a frontend product list

Hi @decornmore 

I just now reviewed the site the problem is height of the image. so I can give you the solution here
1) open the product page URL.https://babybeddingdesign.com/dumbo-crib-bedding-collection-crib-bedding-set
2) Inspect the image in your product page and search the class name as 'fotorama__stage'
3) set the height for 428 pixel.
If my solution is useful, give kudos & accept as solution

Best regards
Madhuresan
Bootsgrid

Re: Magento 2.3 adds white stripes while resizing a product image for a frontend product list

the problom is on all my sites not only on this page. 

Re: Magento 2.3 adds white stripes while resizing a product image for a frontend product list

Hi @decornmore,

Do one thing refer your CSS file and there your can change the height of the image as 428 in any of css file which one is main calling css file.

If my solution is useful, give kudos & accept as solution

Best regards
madhuresan
Bootsgrid