Always to magento catalog I upload image .jpg with white bg color.
Does anyone know how I can now change all products background for transparent, and add a gray background for all products under the photo?
update css theme.less:
.gallery-placeholder {
background-color: #f2f2f2;
}
img.img-responsive {
background-color: #f2f2f2;
}
img.img-responsive.product-image-photo.img-thumbnail.owl-lazy {background-color:#f2f2f2;}
img.img-responsive.product-image-photo.img-thumbnail {
background-color: #f2f2f2;
}
.products-grid .product-item-info .product-top a.photo {background-color:#f2f2f2;}
update2: (The pictures stretched)
view.xml:
<image id="category_page_grid" type="small_image">
<width>240</width>
<height>300</height>
<transparency>false</transparency>
<aspect_ratio>false</aspect_ratio>
<frame>false</frame>
</image>
<image id="category_page_list" type="small_image">
<width>240</width>
<height>300</height>
<transparency>false</transparency>
<aspect_ratio>false</aspect_ratio>
<frame>false</frame>