cancel
Showing results for 
Search instead for 
Did you mean: 

Resized product images background

Resized product images background

How the white background for resized product images (various thumbnails, for example) can be changed?

 

I have black background and horizontal aspect ratio and white stripes on all images looks not best...

Tags (2)
2 REPLIES

Re: Resized product images background

Workaround: in

 
vendor/magento/framework/View/Design/Theme/Image.php
 
replace hardcoded color in
$image->backgroundColor([0, 0, 0]);
 
and in vendor/magento/module-catalog/Model/Product/Image.php
 
protected $_backgroundColor = [0, 0, 0];

Re: Resized product images background

I'm doing this after every upgrade... stupid.